Documentation
¶
Index ¶
- Constants
- func Copy(toValue interface{}, fromValue interface{}) error
- func FormatDate(t *time.Time) string
- func FormatDateSimple(t *time.Time) string
- func FormatMinuteSimple(t *time.Time) string
- func HmacMD5(secret []byte, plain []byte) ([]byte, error)
- func HmacSHA1(secret []byte, plain []byte) ([]byte, error)
- func HmacSHA256(secret []byte, plain []byte) ([]byte, error)
- func ParseDateSimple(v string) (time.Time, error)
- func ParseDecimal(value string) (res *decimal.Decimal, err error)
- func Percent(d *decimal.Decimal) *decimal.Decimal
- func SHA1(data []byte) []byte
- func UnsafeBytesToString(b []byte) string
- func UnsafeStringToBytes(s string) []byte
Constants ¶
View Source
const DateLayout = "2006-01-02"
View Source
const SimpleDateLayout = "20060102"
View Source
const SimpleMinteLayout = "1504"
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func FormatDateSimple ¶
func FormatMinuteSimple ¶ added in v0.13.0
func HmacSHA256 ¶
HmacSHA256 return HMAC-SHA256 hash
func UnsafeBytesToString ¶
UnsafeBytesToString convert bytes to string without memory allocation
func UnsafeStringToBytes ¶
UnsafeStringToBytes convert string to bytes without memory allocation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.