Gerasimos (Makis) Maropoulos 2020-02-18 18:58:00 +02:00
parent 5aad41a5b3
commit 4105635a02
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7

@ -136,7 +136,8 @@ There may be times that you want something very special to listen on, which is n
// the responsibility of starting up a listener is up to you with this way,
// for the sake of simplicity we will use the
// ListenAndServe function of the `net/http` package.
app.Run(iris.Raw(&http.Server{Addr:":8080"}).ListenAndServe)
srv := &http.Server{Addr:":8080"}
app.Run(iris.Raw(srv.ListenAndServe))
```
## Host configurators