Examples (4)
Compile and install the current package
Compile and install a specific local package
go install path/to/packageInstall the latest version of a program, ignoring `go.mod` in the current directory
go install golang.org/x/tools/gopls@latestInstall a program at the version selected by `go.mod` in the current directory
go install golang.org/x/tools/goplsmade by @shridhargupta | data from tldr-pages