Documentation
¶
Index ¶
- func BuildSign(params map[string]interface{}, secretKey string) string
- func CheckSign(params map[string]interface{}, secretKey string) bool
- func MD5String(plaintext string) string
- func Masked(s string, maskedStr string) string
- func ParseJSONFile(path string, resPtr interface{}) (err error)
- func RandFloat64() float64
- func RandIntN(n int) int
- func RandIntStr(n int) string
- func RandStr(n int) string
- func RootPath() string
- func ShowDurationString(duration time.Duration) string
- func TimeCostLog(ctx context.Context, logField string) func()
- func UniqueID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSONFile ¶
func RandFloat64 ¶
func RandFloat64() float64
func RandIntStr ¶
func ShowDurationString ¶
func TimeCostLog ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.