modern/

directory
v0.0.0-...-f792fb2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: MIT

README

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

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL