Source File
msgpack.go
Belonging Package
github.com/vmihailenco/msgpack/v5
package msgpackimporttype Marshaler interface {MarshalMsgpack() ([]byte, error)}type Unmarshaler interface {UnmarshalMsgpack([]byte) error}type CustomEncoder interface {EncodeMsgpack(*Encoder) error}type CustomDecoder interface {DecodeMsgpack(*Decoder) error}//------------------------------------------------------------------------------type RawMessage []bytevar (_ CustomEncoder = (RawMessage)(nil)_ CustomDecoder = (*RawMessage)(nil))func ( RawMessage) ( *Encoder) error {return .write()}func ( *RawMessage) ( *Decoder) error {, := .DecodeRaw()if != nil {return}* =return nil}//------------------------------------------------------------------------------type unexpectedCodeError struct {hint stringcode byte}func ( unexpectedCodeError) () string {return fmt.Sprintf("msgpack: unexpected code=%x decoding %s", .code, .hint)}
![]() |
The pages are generated with Golds v0.8.2. (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. |