Download and Install the compiler https://github.com/protocolbuffers/protobuf/releases/
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ export PATH=$PATH:$GOPATH/bin$ protoc --go_out=. *.protoimport proto "github.com/golang/protobuf/proto"$ go run .