package main import ( "github.com/gogf/gf/g" "github.com/gogf/gf/g/os/glog" ) func main() { g.TryCatch(func() { glog.Println("hello") g.Throw("exception") glog.Println("world") }) g.TryCatch(func() { glog.Println("hello") g.Throw("exception") glog.Println("world") }, func(exception interface{}) { glog.Error(exception) }) }