Skip to content

Files

14_protocolbuffers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 4, 2022
Dec 4, 2021

Protocol buffers

In order to use protocol buffers, first you need to install the protoc to be available in your command line. Follow the instructions from the official documentation for your OS here.

The .go corresponding to the .proto examples are already available in the folder. If you want to compile them you can run:

protoc --go_out=$GOPATH/src *.proto

Remember than depending on where the generated .go files are stored you need your imports to be set accordingly.