feat: gweb add new func with gin.New

This commit is contained in:
tiglog 2023-08-16 06:59:57 +08:00
parent f1e5d57257
commit a24db144ee

View File

@ -26,6 +26,8 @@ type Context = gin.Context
type H = gin.H
var New = gin.New
func RunWeb(app *Engine, addr string) {
if addr[0] == ':' {
addr = "127.0.0.1" + addr