StartServer start server with http port if config the pprof, will be start pprof server
(httpPort int)
| 350 | // StartServer start server with http port |
| 351 | // if config the pprof, will be start pprof server |
| 352 | func (app *DotWeb) StartServer(httpPort int) error { |
| 353 | addr := ":" + strconv.Itoa(httpPort) |
| 354 | return app.ListenAndServe(addr) |
| 355 | } |
| 356 | |
| 357 | // Start start app server with set config |
| 358 | // If an exception occurs, will be return it |
no test coverage detected