go-install
Compile and install packages named by the import paths. tldr-pages
On several platforms
Several platforms
Compile and install the current package
go installIdentifyCompile and install a specific local package
go install path/to/packageIdentifyInstall the latest version of a program, ignoring go.mod in the current directory
go install golang.org/x/tools/gopls@latestIdentifyInstall a program at the version selected by go.mod in the current directory
go install golang.org/x/tools/goplsIdentify