Super convinient name of naming your project directories, containers, etc.
- Import module https://github.com/dustinkirkland/golang-petname.
- Example from https://pkg.go.dev/github.com/dustinkirkland/golang-petname
To compile and run:
go mod init alexanderallen/pet
# Download module dependencies.
go mod tidy
# Install module.
go build && go install
# Confirm module is installed
ls $GOPATH/bin
Make sure your $GOTPATH
is set in your .bashrc
or equivalent
To get started with Go, see https://golang.org/doc/tutorial/getting-started