add encoder for Go
Merge pull request #205 from BurntSushi/patch-1

add encoder for Go