Go encoders and decoders.