package serialize type ( // Marshaler is the interface implemented by types that Marshaler interface { Marshal(interface{}) ([]byte, error) } // Unmarshaler represents an Unmarshal interface Unmarshaler interface { Unmarshal([]byte, interface{}) error } // Serializer is the interface that groups the basic Marshal and Unmarshal methods. Serializer interface { Marshaler Unmarshaler } )