Skip to content

tkmpypy/grpc-sample-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-sample-golang

Guides

gRPC

Protocol Buffer(proto3)

Types

Prerequisites

  • Golang

  • Protocol buffer compiler

    • move binary at under the /bin to PATH
  • Go plugins

    $ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
    $ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
    $ export PATH="$PATH:$(go env GOPATH)/bin"
  • Document plugins

    $ go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
  • Buf

Usage

Lint

buf lint

or

buf lint --error-format=json

Build

buf build

Generate Code

buf generate todoapis

Generate Doc

protoc --doc_out=html,index.html:./docs todo/todo//*.proto

Releases

No releases published

Packages

No packages published