generated from root/miduo_server
26 lines
444 B
Go
26 lines
444 B
Go
package boot
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/net/ghttp"
|
|
"github.com/gogf/gf/os/glog"
|
|
)
|
|
|
|
// 用于配置初始化.
|
|
func init() {
|
|
glog.Info("########service start...")
|
|
|
|
v := g.View()
|
|
c := g.Config()
|
|
s := g.Server()
|
|
|
|
// 配置对象及视图对象配置
|
|
c.AddPath("config")
|
|
|
|
v.AddPath("template")
|
|
glog.SetStdoutPrint(true)
|
|
s.SetNameToUriType(ghttp.URI_TYPE_ALLLOWER)
|
|
|
|
glog.Info("########service finish.")
|
|
}
|