Pinned Post

Recent Posts

在 Go 中使用 Protobuf

go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go

vim  ~/.bashrc
export PATH="$PATH:$GOPATH/bin"  
source ~/.bashrc

protoc --go_out=plugins=grpc:.  *.proto