package
Version:
v0.34.6
Opens a new window with list of versions in this module.
Published: Jun 1, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
type Codec interface {
Encode(in interface{}) ([]byte, error)
Decode(in []byte, out interface{}) error
}
Codec 编码与解码器接口
func NewJSONCodec() Codec
NewJSONCodec JSON
func NewProtobufCodec() Codec
NewProtobufCodec 创建默认的编码与解码器
Source Files
¶
Click to show internal directories.
Click to hide internal directories.