Created
January 11, 2021 22:08
-
-
Save thospfuller/33698c404566302febcbb927da839157 to your computer and use it in GitHub Desktop.
A simple Go program which prints the user's home directory value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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