Custom HTTP configuration
이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.
Use http.ListenAndServe() directly, like this:
import "net/http"
func main() { router := gin.Default() http.ListenAndServe(":8080", router)}or
import "net/http"
func main() { router := gin.Default()
s := &http.Server{ Addr: ":8080", Handler: router, ReadTimeout: 10 * time.Second, WriteTimeout: 10 * time.Second, MaxHeaderBytes: 1 << 20, } s.ListenAndServe()}