feat: gweb add new func with gin.New
This commit is contained in:
parent
f1e5d57257
commit
a24db144ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user