Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpEngine ¶
NewHttpEngine 创建了一个绑定了路由的 Web 引擎
func NewHttpEngine() (*gin.Engine, error) { // 设置为 Release,为的是默认在启动中不输出调试信息 gin.SetMode(gin.ReleaseMode) // 默认启动一个 Web 引擎 r := gin.Default() // 业务绑定路由操作 Routes(r) // 返回绑定路由后的 Web 引擎 return r, nil }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.