Go 1 cheatsheet
Go 1: Setup and running
6 common Go 1 tasks.
Show Go environment settings
Print one environment setting, here the module cache and workspace location.
go env GOPATH GOMODCACHE
Start a module
Create a go.mod file. Use the path where the module will be published as its name.
go mod init example.com/myapp
Install a command-line tool
Build and install a program from a module into your Go bin folder.
go install golang.org/x/tools/cmd/goimports@latest