1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| //go:build windows
| // +build windows
|
| package core
|
| import (
| "net/http"
| "time"
|
| "github.com/gin-gonic/gin"
| )
|
| 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,
| }
| }
|
|