1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-18 06:47:05 +02:00
parent 4fb46bf1f3
commit 20ba72aecf
8 changed files with 10 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ var (
)
// ControllerActivator returns a new controller type info description.
// Its functionality can be overriden by the end-dev.
// Its functionality can be overridden by the end-dev.
type ControllerActivator struct {
// the router is used on the `Activate` and can be used by end-dev on the `BeforeActivation`
// to register any custom controller's methods as handlers.

View File

@@ -28,14 +28,14 @@ func New() *D {
return &D{}
}
// Hijack sets a hijacker function, read the `Hijacker` type for more explaination.
// Hijack sets a hijacker function, read the `Hijacker` type for more explanation.
func (d *D) Hijack(fn Hijacker) *D {
d.hijacker = fn
return d
}
// GoodFunc sets a type checker for a valid function that can be binded,
// read the `TypeChecker` type for more explaination.
// read the `TypeChecker` type for more explanation.
func (d *D) GoodFunc(fn TypeChecker) *D {
d.goodFunc = fn
return d

View File

@@ -13,7 +13,7 @@ type (
FuncInjector struct {
// the original function, is being used
// only the .Call, which is refering to the same function, always.
// only the .Call, which is referring to the same function, always.
fn reflect.Value
inputs []*targetFuncInput

View File

@@ -3,7 +3,7 @@ package mvc
import "github.com/kataras/iris/core/router"
// Application is the high-level compoment of the "mvc" package.
// It's the API that you will be using to register controllers among wih their
// It's the API that you will be using to register controllers among with their
// dependencies that your controllers may expecting.
// It contains the Router(iris.Party) in order to be able to register
// template layout, middleware, done handlers as you used with the

View File

@@ -9,7 +9,7 @@ import (
// a different folder like "bindings"
// so it will be used as .Bind(bindings.Session(manager))
// or let it here but change the rest of the binding names as well
// because they are not "binders", their result are binders to be percise.
// because they are not "binders", their result are binders to be precise.
func Session(sess *sessions.Sessions) func(context.Context) *sessions.Session {
return func(ctx context.Context) *sessions.Session {
return sess.Start(ctx)