前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
package engine
import ( "github.com/sirupsen/logrus" )
// GoroutineProtection goroutine recovery mechanism for panic func GoroutineProtection(entry *logrus.Entry) { if err := recover(); err != nil { entry.Error("goroutine protection error : ", err) } }