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
go build ./main/grouter.go
./grouter --help
Apache 2.0 License