Golang中使用Protobuf 发表于 2019-12-22 更新于 2020-06-07 分类于 coding 阅读次数: Valine: 安装protochttps://github.com/protocolbuffers/protobuf/releases 下载对应版本的protoc 安装protoc-gen-go https://godoc.org/github.com/golang/protobuf/protoc-gen-go 1go get github.com/golang/protobuf/protoc-gen-go 生成go文件1protoc --go_out=output_directory input_directory/file.proto proto文件编写原文译文