Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAfterRoutine ¶
func AddAfterRoutine(f AfterRoutine)
func AddBeforeRoutine ¶
func AddBeforeRoutine(f BeforeRoutine)
func GoWithMustSuccess ¶
func GoWithMustSuccess(f func() (err error))
func GoWithRecover ¶
func GoWithRecover(f func() (err error))
Types ¶
type AfterRoutine ¶
type AfterRoutine func(currentGid int64)
type BeforeRoutine ¶
type BeforeRoutine func(baseGid, currentGid int64)
type Cache ¶
Cache 协程的信息缓存
func (*Cache[K, V]) GetWithDef ¶
func (p *Cache[K, V]) GetWithDef(key K, def ...V) V
Click to show internal directories.
Click to hide internal directories.