This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package serialize
type (
// Marshaler 序列化
Marshaler interface {
Marshal(v interface{}) ([]byte, error)
}
// Unmarshaler 反序列化
Unmarshaler interface {
Unmarshal(data []byte, v interface{}) error
// Serializer 消息 序列化/反序列化,仅针对payload
Serializer interface {
Marshaler
Unmarshaler
)