Golang equivalent of npm install -g
Update: If you’re using Go 1.16, this answer still works, but go install has changed and is now the recommended method for installing executable packages. See Karim’s answer for an explanation: https://stackoverflow.com/a/68559728/10490740 Using Go >= 1.11, if your current directory is within a module-based project, or you’ve set GO111MODULE=on in your environment, go get will … Read more