Add Encoder/Decoder types for go