Versions in this module Expand all Collapse all v1 v1.0.1 Apr 25, 2023 Changes in this version + const OneDaySec + func BytesToInt64(bs []byte, defaultValue int64) int64 + func CopyPoint(m T) T + func DecryptByDESAndCBC(cipherText []byte) ([]byte, error) + func Duration(s, e int64) string + func Duration2(start, end int64) string + func DurationSecondsOfMonth(s int64) (int64, int64) + func EncryptByDESAndCBC(textBytes []byte) ([]byte, error) + func FirstSecond(t time.Time) int64 + func FirstSecond2(s int64) int64 + func FormatDate(ts int64) string + func FormatTime(ts int64) string + func GetFirstDateOfMonth(d time.Time) time.Time + func GetLastDateOfMonth(d time.Time) time.Time + func GetZeroTime(d time.Time) time.Time + func NonceStr() string + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func SafePage(i T) T + func Str2Time(str string) time.Time + func StrToTime(str string) int64 + func ToBool(i T) bool + func TodayFirstSecond() int64 + type Cmp interface + Less func()