package
Version:
v0.6.11
Opens a new window with list of versions in this module.
Published: Jun 4, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func MapToStruct(m interface{}, structPointer interface{}) error
MapToStruct map转struct.
mqtt解析字段直接使用项目通用的json标签
mqtt传输int会转为string(int),需要开启 WeaklyTypedInput
type User struct {
ID int `json:"id"`
Name string `json:"name"`
Age int `json:"age"`
}
User 一个用于测试的struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.