Documentation ¶
Index ¶
Constants ¶
View Source
const (
JSON_CODEC = iota
)
Variables ¶
This section is empty.
Functions ¶
func JsonMarshal ¶
func JsonUnmarshal ¶
Types ¶
type Codec2 ¶
type Codec2 interface { CodecID() byte // 标识当前是哪个Codec Marshal(v any) ([]byte, error) Unmarshal(data []byte, v any) error }
Codec2 新的Codec
Click to show internal directories.
Click to hide internal directories.