Versions in this module Expand all Collapse all v2 v2.0.2 Jun 9, 2023 Changes in this version + func FuncCost(start time.Time, printer Printer) + func GetDayOffset(tm time.Time, ago int64, format ...string) string + func GetDaysDiff(date1 time.Time, date2 time.Time) int + func GetMonthByInt(weekDay string) int32 + func GetThisMonthFirstZeros() int64 + func GetWeekByIntDay(weekDay string) int32 + func RandStringBytesMask(n int) string + func RunPeriod(interval time.Duration, handler func(), closeCh ...chan struct{}) + func StringToTime(t string, format ...string) time.Time + func StringToUnix(t string, format ...string) int64 + func TimeToString(t time.Time, format ...string) string + func TimeToUnix(t time.Time) int64 + func UnixToString(tm int64, format ...string) string + func UnixToTime(tm int64) time.Time + type EUnit struct + Field []byte + Raw K + func SortFieldsWithGbk(units []EUnit[K], offset int, limit int, desc bool) ([]EUnit[K], error) + type Printer func(time.Duration) + type Result struct + func RunCmd(cmdLine string, envs map[string]string, timeout ...time.Duration) *Result + func (r *Result) Error() error + func (r *Result) String() string Other modules containing this package github.com/aronlt/toolkit