Fork自 FLIPPED-AURORA / gin-vue-admin
体验新版 GitCode,发现更多精彩内容 >>
//go:build windows
// +build windows package core import ( "github.com/gin-gonic/gin" "net/http" "time" ) func initServer(address string, router *gin.Engine) server { return &http.Server{ Addr: address, Handler: router,
ReadTimeout: 20 * time.Second, WriteTimeout: 20 * time.Second,
MaxHeaderBytes: 1 << 20, }
}