协议转换
Converter结构
type Converter struct {
Protocol string
Encoding string
TagKeyRenameMap map[string]string
ProtocolKeyRenameMap map[string]string
}func NewConverter(protocol, encoding string, tagKeyRenameMap, protocolKeyRenameMap map[string]string) (*Converter, error)转换方法
使用步骤
示例
附录
- 协议名意义
- 编码方式意义
- 字段名描述
Last updated