mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-15 14:17:03 +08:00
feat(gin,runserver): go fmt file
This commit is contained in:
parent
72be513b9f
commit
a1f4f8406c
2
gin.go
2
gin.go
@ -297,7 +297,7 @@ func (engine *Engine) Run(addr ...string) (err error) {
|
||||
|
||||
// Run attaches the router to a http.Server and starts listening and serving HTTP requests.
|
||||
// You can use your http.server config like ReadTimeout ...
|
||||
// It is a shortcut for http.ListenAndServe(addr, router)
|
||||
// It is a shortcut for server.ListenAndServe()
|
||||
// Note: this method will block the calling goroutine indefinitely unless an error happens.
|
||||
func (engine *Engine) RunServer(server *http.Server, addr ...string) (err error) {
|
||||
defer func() { debugPrintError(err) }()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user