Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheTime ¶
func CacheTime() string
CacheTime returns a time cache in seconds. we use a cache to reduce the format
func GoWithRecover ¶
func GoWithRecover(handler func(), recoverHandler func(r interface{}))
GoWithRecover wraps a `go func()` with recover()
func RegisterRecoverLogger ¶
RegisterRecoverLogger replace the log handler when go with recover catch a panic notice the replaced handler should be simple. if the handler panic, the recover handler will be failed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.