go frame框架,关闭启动时打印的路由列表已经debug信息
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
)
func main() {
glog.SetDebug(false) // 关闭debug信息
s := g.Server()
s.SetDumpRouterMap(false) // 关闭打印的路由列表
}
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
)
func main() {
glog.SetDebug(false) // 关闭debug信息
s := g.Server()
s.SetDumpRouterMap(false) // 关闭打印的路由列表
}