- create generate.go in service dir
- add go generate line in generate.go files, e.g.: generate.go
- create common_resources.proto for each service proto, e.g.: v1/common_resources.proto v2/common_resources.proto
- create entity proto which you want to generate CRUD api for, e.g.: v1/greeting.proto v2/greeting.proto
- save your custom messages into types.proto, save your enum messages into enums.proto, e.g.: v1/types.proto v2/enums.proto
- create generate.go in proto project dir, e.g.: generate.go
- add filters:
-f echo/v2 -f echo/v1
means generate CRUD api for echo/v2 and echo/v1 only.
git clone https://github.com/ArtistML/toolkits.git
cd tollkits
- create local/generate.go file to generate python package, e.g.: generate.go