11 lines
262 B
Go
11 lines
262 B
Go
package api
|
|
|
|
// BytesMarshaler marshals into bytes/string representation
|
|
type BytesMarshaler interface {
|
|
MarshalBytes() ([]byte, error)
|
|
}
|
|
|
|
// StructMarshaler marshals into a struct representation
|
|
type StructMarshaler interface {
|
|
MarshalStruct() (any, error)
|
|
}
|