util

package
v0.0.0-...-4e1f493 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlateUnCompress

func FlateUnCompress(data []byte) ([]byte, error)

func FloatToString

func FloatToString(v float64, n int) string

FloatToString 保留的小数点位数,去除末尾多余的0(StripTrailingZeros)

func GenerateOrderClientId

func GenerateOrderClientId(size int) string

func GzipUnCompress

func GzipUnCompress(data []byte) ([]byte, error)

func HmacMD5Sign

func HmacMD5Sign(secret, params string) (string, error)

func HmacSHA1Sign

func HmacSHA1Sign(secret, params string) (string, error)

func HmacSHA256Base64Sign

func HmacSHA256Base64Sign(secret, params string) (string, error)

func HmacSHA256Sign

func HmacSHA256Sign(secret, params string) (string, error)

func HmacSHA512Base64Sign

func HmacSHA512Base64Sign(hmacKey string, data string) string

func HmacSHA512Sign

func HmacSHA512Sign(secret, params string) (string, error)

func HmacSha384Sign

func HmacSha384Sign(secret, params string) (string, error)

func MD5Sign

func MD5Sign(secret, params string) (string, error)

func MergeOptionParams

func MergeOptionParams(params *url.Values, opts ...model.OptionParameter)

func ValuesToJson

func ValuesToJson(v url.Values) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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