What do you want to save?
Add Code snippet
New code examples
-
Go 2021-10-13 23:51:04
init function in golang
// initializing variables var ( home = os.Getenv("HOME") user = os.Getenv("USER") gopath = os.Getenv("GOPATH") ) func init() { fmt.Printf("%v\n", home) fmt.Printf("%v\n", user) fmt.Printf("... Add solution