Skip to content

Instantly share code, notes, and snippets.

@178inaba
Created August 5, 2015 07:41
Show Gist options
  • Save 178inaba/21dc8443397e22a43043 to your computer and use it in GitHub Desktop.
Save 178inaba/21dc8443397e22a43043 to your computer and use it in GitHub Desktop.
getenv to home from go
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println(os.Getenv("HOME"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment