Go encoders/decoders