go: fix golint errors and some general cleanup/consolidation.
Merge pull request #22 from Medium/andybons/update

go: fix golint errors and some general cleanup/consolidation.