protoc-gen-go
needs to be in your shell path, i.e. one of the directories listed in the PATH
environment variable, which is different from the Go path. You can test this by simply typing protoc-gen-go
at the command line: If it says "command not found" (or similar) then it's not in your PATH
.