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.