To generate documentation, run the following command:
$ env HTTPDOC=1 go test -v
One example uses protocol buffer, message definition is in ../proto directory. To generate code from that, run the following command:
# Install protoc-gen-go if you don't have it
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ protoc -I=./../proto --gofast_out=./ ../proto/message.proto