GIT_TAG='v1.1.0'
go get -d -u github.com/golang/protobuf/protoc-gen-go
git -C "$(go env GOPATH)"/src/github.com/golang/protobuf checkout $GIT_TAG
go install github.com/golang/protobuf/protoc-gen-go
Check current protoc-gen-go location
which protoc-gen-go
If this file localted in /usr/local/bin/ not in $GOPATH/bin.
Let's remove or uninstall current version of protoc-gen-go by:
brew uninstall protoc-gen-go
// or just
sudo rm /usr/local/bin/protoc-gen-go
Then restart terminal
This was very helpful. thank you.