// 设置方式 gin.SetMode(gin.ReleaseMode) // 检测方式 if gin.Mode() == gin.DebugMode { }
更多相关信息,建议直接去看源代码。
Refer:有哪些方式设置Gin运行模式
Src:https://sourcegraph.com/github.com/gin-gonic/gin/-/blob/mode.go
Link:https://www.cnblogs.com/farwish/p/12714288.html
// 设置方式 gin.SetMode(gin.ReleaseMode) // 检测方式 if gin.Mode() == gin.DebugMode { }
更多相关信息,建议直接去看源代码。
Refer:有哪些方式设置Gin运行模式
Src:https://sourcegraph.com/github.com/gin-gonic/gin/-/blob/mode.go
Link:https://www.cnblogs.com/farwish/p/12714288.html
相关文章: