Get Environment Variable in Go

Posted by yhuang
Public (Editable by Users)
Go
Edit
package main

import (
    "fmt"
    "os"
)

func main() {

    fmt.Println("FOO:", os.Getenv("FOO"))
}