You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngs/serialize/serializer.go

20 lines
407 B
Go

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
}
)