依赖包:
import "runtime"
代码:
buf := make([]byte, 1 << 20)
runtime.Stack(buf, true)
fmt.Printf("\n%s", buf)
依赖包:
import "runtime"
代码:
buf := make([]byte, 1 << 20)
runtime.Stack(buf, true)
fmt.Printf("\n%s", buf)
转载于:https://my.oschina.net/guonaihong/blog/412932