Skip to content

Instantly share code, notes, and snippets.

@thospfuller
Created January 11, 2021 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thospfuller/33698c404566302febcbb927da839157 to your computer and use it in GitHub Desktop.
Save thospfuller/33698c404566302febcbb927da839157 to your computer and use it in GitHub Desktop.
A simple Go program which prints the user's home directory value.
/* To build:
* go get k8s.io/client-go/util/homedir
* go build main.go
*
* To run:
* ./main
*/
package main
import "fmt"
import "k8s.io/client-go/util/homedir"
func main() {
fmt.Println("homeDir: ", homedir.HomeDir())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment