Documentation ¶
Index ¶
- func EqualFloat(x, y, epsilon float64) bool
- func FromBytes(data []byte, obj any) error
- func GenAppKey() string
- func GenAppSecret(appKey, name string) (string, error)
- func GenUuid() string
- func HashString(s string) uint32
- func Round(number float64, decimalPlaces int) float64
- func StandardTime(year int) (time.Time, time.Time)
- func ToBytes(obj any) ([]byte, error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFloat ¶
func GenAppSecret ¶
GenAppSecret 生成appSecret sm3(appKey + name + timestamp + random)
Types ¶
Click to show internal directories.
Click to hide internal directories.