Skip to content

Instantly share code, notes, and snippets.

@amsokol
Last active September 15, 2018 05:41
Show Gist options
  • Save amsokol/b81df9c0d48a0ab50dcbb4cf62d60b52 to your computer and use it in GitHub Desktop.
Save amsokol/b81df9c0d48a0ab50dcbb4cf62d60b52 to your computer and use it in GitHub Desktop.
(+grpc-gateway) protoc-gen.cmd
protoc --proto_path=api/proto/v1 --proto_path=third_party --go_out=plugins=grpc:pkg/api/v1 todo-service.proto
protoc --proto_path=api/proto/v1 --proto_path=third_party --grpc-gateway_out=logtostderr=true:pkg/api/v1 todo-service.proto
protoc --proto_path=api/proto/v1 --proto_path=third_party --swagger_out=logtostderr=true:api/swagger/v1 todo-service.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment