cloudstd

Generate Protobuf service definitions conforming to popular style guides:

Installation

go install github.com/slavovojacek/[email protected]

Usage

Modern, simple style

This style is based on Buf Style Guide and Uber Protobuf Style Guide V2.

proto> cloudstd proto --package "acme.shelf.v1" --resource "shelf,shelves"
proto> cloudstd proto --package "acme.book.v1" --resource "book" --parent "shelf,shelves"

See example docs for working example.

Google style

This style is based on the Google Cloud API Design Guide.

proto> cloudstd proto --package "acme.shelf.v1" --resource "shelf,shelves" --google
proto> cloudstd proto --package "acme.book.v1" --resource "book" --parent "shelf,shelves" --google

See example docs for working example.

GitHub

View Github