Documentation
¶
Overview ¶
Package utils 提供通用工具函数
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
func Marshal(o interface{}, appSecret string, signFunc func(params map[string]any, appSecret string) string) string
Marshal 序列化参数并添加签名
func MarshalNoErr ¶
func MarshalNoErr(object interface{}) string
MarshalNoErr 将对象序列化为JSON字符串,出错时返回空字符串
func RandStringBytesMaskImprSrcUnsafe ¶
RandStringBytesMaskImprSrcUnsafe 生成随机字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.