util

package
v0.0.0-...-6869780 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRFCDate

func GetRFCDate() string

*

  • 取得当前日期时间字符串,为RFC1123格式

func HmacSha1

func HmacSha1(secret string, message string) string

*

 hmac_sha1签名
 @param:
	secret string:签名的key
	message string:签名的内容

*

func Md5Base64_16

func Md5Base64_16(data string) string

*

  • 对字符串进行md5编码,并且每2位转换为字符,然后进行base64
  • @param
  • data:要编码的串 *

func Md5Base64_32

func Md5Base64_32(data string) string

*

** 对字符串进行md5,并对md5的结果进行base64编码
* @param
*  data: 签名的内容

func Md5Signature

func Md5Signature(data string) string

*

 对字符串进行md5运算
 @param
	data: 签名的内容

*

func QueryEscape

func QueryEscape(str string) string

*

  • url编码特殊过滤,和标准的url编码有小差别

func QueryUnEscape

func QueryUnEscape(str string) string

*

  • url解码特殊过滤,和标准的url编码有小差别

Types

This section is empty.

Jump to

Keyboard shortcuts

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