Skip to content

Instantly share code, notes, and snippets.

@thospfuller

thospfuller/main.go

Created Jan 11, 2021
Embed
What would you like to do?
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