Skip to content

Instantly share code, notes, and snippets.

Created January 11, 2021 22:08
What would you like to do?
A simple Go program which prints the user's home directory value.
/* To build:
* go get
* go build main.go
* To run:
* ./main
package main
import "fmt"
import ""
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