()
| 12 | } |
| 13 | |
| 14 | func newApp() *iris.Application { |
| 15 | app := iris.New() |
| 16 | app.Use(iris.Compression) |
| 17 | |
| 18 | app.OnAnyErrorCode(onErrorCode) |
| 19 | app.Get("/", handler) |
| 20 | |
| 21 | app.Configure(iris.WithResetOnFireErrorCode) |
| 22 | return app |
| 23 | } |
| 24 | |
| 25 | // This is the default error handler Iris uses for any error codes. |
| 26 | func onErrorCode(ctx iris.Context) { |
searching dependent graphs…