Documentation ¶
Index ¶
- func I2i(target, source, targetKey, sourceKey, compareKey interface{})
- func I2iKey(target, source, targetKey, sourceKey, compareKey interface{}, subkey string)
- func ROuint32(source interface{}, key string) []uint32
- func ROuint64(source interface{}, key string) []uint64
- func Rstring(source interface{}, key string) string
- func Rstrings(source interface{}, key string) []string
- func Ruint32(source interface{}, key string) []uint32
- func Ruint64(source interface{}, key string) []uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func I2i ¶
func I2i(target, source, targetKey, sourceKey, compareKey interface{})
I2i 遍历对接rpc拿过来的数据。附加source的数据到target的对应字段里 target 需要遍历的数据,source rpc过来的数据 目前仅支持string,uint类型 (rs.Data, suser.Data, "Avatar,NickName", "", "UserId,Uid")
func I2iKey ¶
func I2iKey(target, source, targetKey, sourceKey, compareKey interface{}, subkey string)
I2i 遍历对接rpc拿过来的数据。附加source的数据到target的对应字段里 target 需要遍历的数据,source rpc过来的数据 目前仅支持string,uint类型 targetKey 目标key,sourceKey 资源key。如果sourceKey为空,则使用targetKey。 compareKey对比key subkey二级struct名字 urange.I2iKey(data, suser.Data, "Avatar,NickName", "", "FriendId,Uid", "worker")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.