How to install Gotip

I’ve just seen a Twitter post by Russ Cox which said, in order to install a trial version of Go generics, all one had to do was to run…

go install
gotip download

the first line seems to run okay, but the gotip download line fails with a command not found: gotip.

Does anyone have a working guide to how to get gotip running?

Hi @carlca,

Type “go env GOBIN” in your terminal. The output is the path where go install installs the compiled binary. If the output is empty, type “go env GOPATH” and add /bin - this is the default install path when GOBIN is not set.

Now verify if that path is part of your $PATH variable. Chances are it’s not, and that’s probably why your shell cannot find the command.

Thanks! That sorted it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.