This commit is contained in:
ljw
2024-09-13 15:57:29 +08:00
commit c53df223d1
112 changed files with 14353 additions and 0 deletions

12
http/run.go Normal file
View File

@@ -0,0 +1,12 @@
//go:build !windows
package http
import (
"github.com/fvbock/endless"
"github.com/gin-gonic/gin"
)
func Run(g *gin.Engine, addr string) {
endless.ListenAndServe(addr, g)
}