- required Go 1.19, and
Install the following tools:
- required Protocol Buffers Compiler,
protoc(3.21.9, version to date):- Homebrew:
brew install protobuf - Alpine 3.15:
apk add protobuf-dev protobuf - Ubuntu 21.10:
apt-get install protobuf-compiler libprotobuf-dev
- Homebrew:
- required
bufCLI for linting and compiling:go install github.com/bufbuild/buf/cmd/[email protected]
- required Protocol Buffer Plugin for Go:
go install google.golang.org/protobuf/cmd/[email protected]
- required gRPC Plugin for Go:
go install google.golang.org/grpc/cmd/[email protected]
- recommended Code Formatting,
clang-format, you can usefind . -name '*.proto' | xargs clang-format -i- Homebrew:
brew install clang-format(14.0.6, version to date): - Alpine 3.15:
apk add clang-extra-tools - Ubuntu 21.10:
apt-get install clang-format
- Homebrew:
- recommended gRPC Health Check tester using
grpc-health-probe:go install github.com/grpc-ecosystem/[email protected]