go mod init <base-package-name>
go mod download
go mod tidy
- Blank identifier ( _ ) can be used to force unused import
- Access Modifier depends on first letter of name at each functions or variables
- Capital letter means can be accessed from outside package (like public)
- Small letter means can only be accessed from same package (like private)
- Setting GOPATH
- at linux/macos config it at .bashrc or .zshrc
export GOPATH="/Users/Username/folder-for-golang-dev"