golang查看panic详细对战信息
defer func() { if e := recover(); e != nil { var buf [4096]byte n := runtime.Stack(buf[:], false) fmt.Println(string(buf[:n])) } }()
I can see a bigger world.
defer func() { if e := recover(); e != nil { var buf [4096]byte n := runtime.Stack(buf[:], false) fmt.Println(string(buf[:n])) } }()