Modern, simple style
The protos in this folder were generated by the following command:
modern> cloudstd proto --package "acme.shelf.v1" --resource "shelf,shelves"
modern> cloudstd proto --package "acme.book.v1" --resource "book" --parent "shelf,shelves"
Codegen with Golang
Assuming you've got Go set up on your machine, install buf and the required Go protoc
plugins:
brew install bufbuild/buf/buf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
Update your PATH
if needed:
export PATH="$PATH:$(go env GOPATH)/bin"
Verify code style and generate protos:
modern> buf lint
modern> buf generate