lqs / gogoslim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️⚠️⚠️ This project is deprecated and should not be used ⚠️⚠️⚠️

gogoslim

A customized configuration of gogoprotobuf (https://github.com/gogo/protobuf) to generate fast & slim code (without XXX_shit fields and GetShit() methods)

Usage

go get github.com/gogo/protobuf@v1.2.1 github.com/lqs/gogoslim/protoc-gen-gogoslim

protoc -I. --gogoslim_out=\
Mgoogle/protobuf/any.proto=github.com/lqs/gogoslim/types,\
Mgoogle/protobuf/duration.proto=github.com/lqs/gogoslim/types,\
Mgoogle/protobuf/empty.proto=github.com/lqs/gogoslim/types,\
Mgoogle/protobuf/struct.proto=github.com/lqs/gogoslim/types,\
Mgoogle/protobuf/timestamp.proto=github.com/lqs/gogoslim/types,\
Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:. \
myproto.proto

About


Languages

Language:Go 100.0%