Documentation
¶
Index ¶
- func ConvertKind(k reflect.Kind) reflect.Kind
- func DeepCopy(dst, src any)
- func EqualJSON(a, b any) bool
- func ForbidWords(msg string) string
- func GUID() string
- func GetTimerSet() *timerSet
- func InArray(array any, some any) int
- func LoadForbidWords(words []string)
- func NewTimerSet() *timerSet
- func ResetTimer(t *Timer, d time.Duration)
- func SkipPeriodTime(start time.Time, d time.Duration) time.Time
- func StopTimer(t *Timer)
- type Bitmap
- type Timer
- type TimerGroup
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopy ¶
func DeepCopy(dst, src any)
深拷贝 结构体、切片、数组之间递归深拷贝 整数、浮点数、字符串、布尔类型直接拷贝,其他类型忽略 增加tag alias 2020-04-29 结构体匿名字段可拷贝 2020-07-16 修复源数据字段拷贝时跳过
func GetTimerSet ¶
func GetTimerSet() *timerSet
func LoadForbidWords ¶
func LoadForbidWords(words []string)
func NewTimerSet ¶
func NewTimerSet() *timerSet
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func NewPeriodTimer ¶
创建重复执行的定时器
type TimerGroup ¶
type TimerGroup struct {
// contains filtered or unexported fields
}
func (*TimerGroup) NewPeriodTimer ¶
func (*TimerGroup) ResetTimer ¶
func (g *TimerGroup) ResetTimer(t **Timer, f func(), d time.Duration)
func (*TimerGroup) StopAllTimer ¶
func (g *TimerGroup) StopAllTimer()
Click to show internal directories.
Click to hide internal directories.