Documentation ¶
Overview ¶
Package s2m 目的:go-redis库 HMSet 将一个 map[string]string 类型的值设置到redis, HGetAll 获取hash中的所有值返回 map[string]string 类型的数据, 此包主要用于简化使用以上两个函数的复杂性,将一个struct体写入到一个redis hash数据类型,或将HGetAll的返回值解析到redis
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToStruct ¶
MapToStruct 将 map m(不是指针),转换为 struct, 并赋值到out(必须是指针),StructToMap的反函数
Types ¶
type StringToType ¶
StringToType 解码
type TypeToString ¶
TypeToString 编码
Click to show internal directories.
Click to hide internal directories.