Go
Install Commands
Install Go binaries and tools from source. Use 'go install' to fetch, compile, and install tools directly from their source repositories.
4 commands
Pro Tips
Install tools with version: 'go install github.com/user/tool@latest' — always specify a version.
Installed binaries go to $GOBIN (default: $GOPATH/bin). Add this to your PATH.
Use 'go install ./...' in a project to install all binaries defined in the module.
Common Mistakes
'go get' is for adding dependencies to go.mod. Use 'go install' for installing executables — they serve different purposes.
Installing tools with '@latest' may get a different version than your team. Pin versions in a tools.go file.