Documentation ¶
Overview ¶
Package util go实用库 RSA的签名及验签 SHA256 With RSA
Package util go实用库 RSA的签名及验签 SHA256 With RSA
Package util go实用库 安全散列算法SHA常用函数
Index ¶
- func Ceil(v float64) float64
- func Date(s, layout string) (int64, error)
- func Floor(v float64) float64
- func MD5(s string) string
- func ParseTimeByUUID(uuid string) (dateTime string, err error)
- func RSA(src, privateKey string) (s string, err error)
- func RSACheck(src, sign, publicKey string) (ok bool, err error)
- func Random(min, max int64) int64
- func RandomNumber() int64
- func RandomStr(length int) string
- func RandomString(length int) string
- func Round(v float64, decimals int) float64
- func SHA256(s []byte) (r []byte, err error)
- func TimeToSring(t time.Time, format string) string
- func UUID() (uuid string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTimeByUUID ¶
ParseTimeByUUID 根据uuid, 获取生成该uuid的时间
func TimeToSring ¶
TimeToSring 格式化time.Time输出日期字符串 MM - month - 01 M - month - 1, single bit DD - day - 02 D - day 2 YYYY - year - 2006 YY - year - 06 HH - 24 hours - 03 H - 24 hours - 3 hh - 12 hours - 03 h - 12 hours - 3 mm - minute - 04 m - minute - 4 ss - second - 05 s - second = 5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.