1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

remove any reference to the pre go1.9 context.Context and replace with iris.Context on some places that were forgotten

got an email feedback about this


Former-commit-id: b1caa261a0d425d8db2091bffb8cfd6065c4e1fa
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-08-11 15:43:47 +03:00
parent 943c3f77cb
commit 5c91440e46
11 changed files with 29 additions and 33 deletions

View File

@@ -8,6 +8,7 @@ Example:
import (
"github.com/kataras/iris/_examples/mvc/overview/datamodels"
"github.com/kataras/iris"
"github.com/kataras/iris/context"
)
@@ -41,7 +42,7 @@ so theoretically, something like the following is permitted if it's really neces
// This is called where the return value from a controller's method functions
// is type of `Movie`.
// For example the `controllers/movie_controller.go#GetBy`.
func (m Movie) Dispatch(ctx context.Context) {
func (m Movie) Dispatch(ctx iris.Context) {
if !m.IsValid() {
ctx.NotFound()
return