feat(gin,runserver): go fmt file

This commit is contained in:
yangqiuhua 2019-05-16 14:38:05 +08:00
parent 72be513b9f
commit a1f4f8406c
2 changed files with 14 additions and 14 deletions

2
gin.go
View File

@ -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) }()