Documentation ¶
Index ¶
- func ConvertKind(k reflect.Kind) reflect.Kind
- func DeepCopy(dst, src interface{})
- func EqualJSON(a, b interface{}) bool
- func GUID() string
- func GetTimerSet() *timerSet
- func InArray(array interface{}, some interface{}) int
- 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 interface{})
深拷贝 结构体、切片、数组之间递归深拷贝 整数、浮点数、字符串、布尔类型直接拷贝,其他类型忽略 增加tag alias 2020-04-29 结构体匿名字段可拷贝 2020-07-16 修复源数据字段拷贝时跳过
func GetTimerSet ¶
func GetTimerSet() *timerSet
func NewTimerSet ¶
func NewTimerSet() *timerSet
func ResetTimer ¶
Types ¶
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.