Serialization and parsing of native structures in Go