Documentation ¶
Overview ¶
Package grecover catch exec panic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchStack ¶
func CatchStack() []byte
CatchStack 捕获指定stack信息,一般在处理panic/recover中处理 返回完整的堆栈信息和函数调用信息
Types ¶
type LoggerFunc ¶
type LoggerFunc func(msg ...interface{})
LoggerFunc is a bridge between Logger and any third party logger.
func (LoggerFunc) Println ¶
func (f LoggerFunc) Println(args ...interface{})
Println implements Logger interface.
Click to show internal directories.
Click to hide internal directories.