Instead of "hello world", I write proxy/routers when trying out a new language. With grouter, I can also play with design ideas for a moxi "2.0", but learn golang at the same time.
First, set up your GOPATH, like...
export GOPATH=~/go
Then, get the code...
go get github.com/steveyen/grouter
Or, old-school...
mkdir -p ~/go/src/github.com/steveyen
cd ~/go/src/github.com/steveyen
git clone git://github.com/steveyen/grouter.git
For developers, to (re-)build it...
cd grouter
(cd grouter && go build)
./grouter/grouter --help
Workload generation...
./grouter/grouter \
--source=workload:concurrency=200 \
--target=couchbase://10.3.121.192:8091 \
--target-concurrency=200
Apache 2.0 License