Categorygithub.com/s-pos/protobuf
module
1.0.2
Repository: https://github.com/s-pos/protobuf.git
Documentation: pkg.go.dev

# README

Protobuf

1. Installation

  • For Windows user using WSL
$ sudo apt install -y protobuf-compiler
$ protoc --version
  • For MacOS user
$ brew install protobuf
$ protoc --version

2. Extension

  • Install Protoc GO Extension (gRPC) with the syntax

with Go version >= 1.16

$ go install google.golang.org/protobuf/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]

After install Extension, you need export PATH binary of Go with syntax

export PATH=$PATH:$GOPATH/bin

3. Generate

For generate file proto, please run this syntax

$ protoc \
    --go_out=./go \
    --go-grpc_out=./go \
    ./pb/*/*.proto

# Packages

No description provided by the author