grahamking/Key-Value-Polyglot — pull request #7 by surma (2012-03-21 23:19:06+00:00)
Title: Idomatize Go

Another try. Sorry for the mistake earlier. Seems like lag on my system made me think it actually worked ;)

A few little changes to make the Go file look more idiomatic so people who don’t know Go the right feeling for it ;)

* Use `flag` package for command line flags. Although it is rather uncommon for Go programs to have double-dashed options, I did not change that for the sake of compatibility
* Automatically close a connection when `handleConn()` is done
* Initialize global Variables implicitly