util

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinStringsInASCII

func JoinStringsInASCII(data map[string]interface{}, sep string, onlyValues, includeEmpty bool, exceptKeys ...string) string

JoinStringsInASCII 按照规则,参数名ASCII码从小到大排序后拼接 data 待拼接的数据 sep 连接符 onlyValues 是否只包含参数值,true则不包含参数名,否则参数名和参数值均有 includeEmpty 是否包含空值,true则包含空值,否则不包含,注意此参数不影响参数名的存在 exceptKeys 被排除的参数名,不参与排序及拼接

func Sign

func Sign(data interface{}, key string) (string, error)

func ToMap

func ToMap(in interface{}, tagName string) (map[string]interface{}, error)

ToMap 结构体转为Map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL