GoLang语言的protocbuffer配置

windows平台下

1.下载protocol Buffers 编辑器
    下载地址:github: https://github.com/google/protobuf/releases
    百度云盘:http://pan.baidu.com/s/1dF6KOzJ
2. 获取goprotobuf提供的protobuf编译器插件protoc-gen-go(被放置
    于%GOPATH%/bin下,%GOPATH%/bin应该被加入PATH环境变量,以便protoc能够找到protoc-gen-go
    获取执行语句:
        go get github.com/golang/protobuf/protoc-gen-go
3. 获取 goprotobuf 提供的支持库,包含诸如编码(marshaling)、解码(unmarshaling)等功能
    获取执行语句:
        go get github.com/golang/protobuf/proto
4. protoc配置完成
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。