Documentation ¶
Index ¶
- 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 MemoryPage[T any](data []T, offset int64, limit int64) []T
- func MustMarshal(value any) string
- 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
- type Printer
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDayOffset ¶ added in v1.0.1
GetDayOffset 获取n天前或者后的时间
func GetMonthByInt ¶ added in v1.0.1
GetMonthByInt 获取每月返回为int值,1-12
func GetThisMonthFirstZeros ¶ added in v1.0.1
func GetThisMonthFirstZeros() int64
GetThisMonthFirstZeros 获取本月初时间戳
func GetWeekByIntDay ¶ added in v1.0.1
GetWeekByIntDay 获取每周返回为int值,1-7
func MemoryPage ¶ added in v1.0.41
MemoryPage 内存分页函数
func MustMarshal ¶ added in v1.0.32
func RandStringBytesMask ¶ added in v1.0.21
RandStringBytesMask 获取N个随机字符串
func StringToTime ¶ added in v1.0.1
StringToTime 字符串转时间
func StringToUnix ¶ added in v1.0.1
StringToUnix 字符串转换为时间戳
func TimeToString ¶ added in v1.0.1
TimeToString 时间转字符串
func UnixToString ¶ added in v1.0.1
UnixToString 时间戳转字符串
Types ¶
type Result ¶ added in v1.0.16
type Result struct {
// contains filtered or unexported fields
}
Result cmd exec result
Click to show internal directories.
Click to hide internal directories.