Source File
serializer.go
Belonging Package
github.com/gookit/goutil/comdef
package comdeftype (// MarshalFunc defineMarshalFunc func(v any) ([]byte, error)// UnmarshalFunc defineUnmarshalFunc func(bts []byte, ptr any) error)// Serializer interface definitiontype Serializer interface {Serialize(v any) ([]byte, error)Deserialize(data []byte, v any) error}// GoSerializer interface definitiontype GoSerializer interface {Marshal(v any) ([]byte, error)Unmarshal(v []byte, ptr any) error}// Codec interface definitiontype Codec interface {Decode(blob []byte, v any) (err error)Encode(v any) (out []byte, err error)}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |