This repo containes protobuf files and Go generated code for the infinimesh APIs.
At your project(where go.mod is):
go get github.com/infinimesh/proto@latest
Install protoc before going further: manual
# Clone repo
git clone git@github.com:infinimesh/proto.git
cd infinimesh-proto
# Install generators
npm i
npm run generate
- Clone this repo
- Navigate to cloned repo directory
Just run:
docker run -it \
-v $(pwd):/go/src/github.com/infinimesh/proto \
ghcr.io/infinimesh/proto/buf:latest
Set up buf
, follow Dockerfile for additional dependencies.
Run buf generate
Check according module for buf, add it to buf.gen.yaml
, run buf generate
.
If you're generating using Docker, you'd have to build image first.