Using the basic encoding libraries in Golang