Documentation
¶
Index ¶
- func Date() string
- func Date2Second(date string) int64
- func DateTime() string
- func DateTime2Second(datetime string) int64
- func EncryptPassword(data []byte) (res string)
- func MarshalGob(data interface{}) ([]byte, error)
- func MarshalMsPack(data interface{}) ([]byte, error)
- func NowMilliSecond() int64
- func NowSecond() int64
- func NowSecondWithLocation(name string) int64
- func Perm(n int) []int
- func RandFloat64() float64
- func RandIntN(n int) int
- func RandIntRange(min, max int) int
- func RandNormFloat64() float64
- func RandNormFloat64WithMeanStddev(mean, stddev float64) float64
- func Second2Date(second int64) string
- func Second2DateTime(second int64) string
- func Shuffle[T any](slice []T)
- func Sign(num float64) int
- func Threshold(x float64) float64
- func UnmarshalGob(data []byte, res interface{}) error
- func UnmarshalJson(data []byte, config interface{}, errorOnUnmatchedKeys bool) (err error)
- func UnmarshalMsPack(data []byte, res interface{}) error
- func UnmarshalToml(data []byte, config interface{}, errorOnUnmatchedKeys bool) error
- func UnmarshalYaml(data []byte, config interface{}, errorOnUnmatchedKeys bool) (err error)
- type UnmatchedTomlKeysError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Date2Second ¶
func DateTime2Second ¶
func EncryptPassword ¶
func MarshalGob ¶
func MarshalMsPack ¶
func NowMilliSecond ¶
func NowMilliSecond() int64
func NowSecondWithLocation ¶
NowSecondWithLocation ex. NowSecondWithLocation("Asia/Shanghai")
func RandNormFloat64WithMeanStddev ¶
RandNormFloat64WithMeanStddev 从均值为mean, 标准差为stddev 的正态分布中获取随机浮点数
func Second2Date ¶
func Second2DateTime ¶
func UnmarshalGob ¶
func UnmarshalJson ¶
func UnmarshalMsPack ¶
func UnmarshalToml ¶
func UnmarshalYaml ¶
Types ¶
type UnmatchedTomlKeysError ¶
func (*UnmatchedTomlKeysError) Error ¶
func (e *UnmatchedTomlKeysError) Error() string
Click to show internal directories.
Click to hide internal directories.