make var in go code example
Example 1: golang set env var
// set env var "FOO" to value "1"
os.Setenv("FOO", "1")
// will print "FOO: 1"
fmt.Println("FOO:", os.Getenv("FOO"))
Example 2: go variables
package main
import "fmt"
var i, j int = 1, 2
func main() {
var c, python, java = true, false, "no!"
fmt.Println(i, j, c, python, java)
}