In this recipe, we will be installing Protobuf to generate Golang structures used in communication with Mesos.
Installing Protobuf
Getting ready
Install Golang, Protobuf, and the Golang Protobuf bindings:
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install golang git
export GOPATH=~/go
export PATH=$PATH:$GOPATH/bin
sudo apt-get install protobuf-compiler
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
How to do it...
- Create a project directory and go there:
mkdir -p $GOPATH/src/simple-scheduler
cd $GOPATH/src/simple-scheduler...