1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 20:07:04 +00:00

add a dependency-injection examples folder for the next release and some improvements

Former-commit-id: 040168afb7caf808618f7da5e68ae8eb01cb7170
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-03-01 02:17:19 +02:00
parent 5fc24812bc
commit ce2eae9121
19 changed files with 214 additions and 76 deletions

View File

@@ -18,6 +18,8 @@ import (
// context for the handlers
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/hero"
// core packages, required to build the application
"github.com/kataras/iris/v12/core/errgroup"
"github.com/kataras/iris/v12/core/host"
@@ -527,6 +529,9 @@ var (
//
// A shortcut for the `context#XMLMap`.
XMLMap = context.XMLMap
// ErrStopExecution if returned from a hero middleware or a request-scope dependency
// stops the handler's execution, see _examples/dependency-injection/basic/middleware.
ErrStopExecution = hero.ErrStopExecution
)
// Constants for input argument at `router.RouteRegisterRule`.