package message type BinarySerializer struct { } func NewBinarySerializer() Serializer { return &BinarySerializer{} } func (b *BinarySerializer) Marshal(i interface{}) ([]byte, error) { //TODO implement me panic("implement me") } func (b *BinarySerializer) Unmarshal(bytes []byte, i interface{}) error { //TODO implement me panic("implement me") }