Answers for "golang goenv variable"

Go
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"))
Posted by: Guest on October-29-2020
0

variables in golang

package main

import "fmt"

func main() {
    number := 100
    decimal := 98.6
    phrase := "Hello World"
    result := true
}
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language