那确切的事情是不可能的。您可能只想重新恐慌,就像在其他语言中重新引发异常一样。
defer func() { if e := recover(); e != nil { //log and so other stuff panic(e) } }()
那确切的事情是不可能的。您可能只想重新恐慌,就像在其他语言中重新引发异常一样。
defer func() { if e := recover(); e != nil { //log and so other stuff panic(e) } }()