First, install the Cap'n Proto tools.
Then, run the following command to install the compiler plugin for the Go language:
go install capnproto.org/go/capnp/v3/capnpc-go@latestThis will install a capnpc-go executable under $(go env GOPATH)/bin,
which you should make sure has been added to your shell's $PATH variable.
You will also need a checkout of of the go-capnp repository, for the
included schema:
git clone https://github.com/capnproto/go-capnp
If you get stuck at any point, please ask us for help!
Once you have installed capnp and the Go plugin, you should write and
compile your first schema.