1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 13:35:59 +00:00

Nothing in codebase, just some MVC examples enhancements

Former-commit-id: 81f1121da0e7632ef3a0f7b78d6784ee1690eb7e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-10-12 21:24:11 +03:00
parent 32d14db46d
commit 13975a5d81
16 changed files with 116 additions and 273 deletions

View File

@@ -59,7 +59,7 @@ var (
// a new Controller type.
// Controller looks the whole flow as one handler, so `ctx.Next`
// inside `BeginRequest` is not be respected.
// Alternative way to check if a middleware was procceed succesfully
// Alternative way to check if a middleware was procceed successfully
// and called its `ctx.Next` is the `ctx.Proceed(handler) bool`.
// You have to navigate to the `context/context#Proceed` function's documentation.
type BaseController interface {

View File

@@ -171,7 +171,7 @@ func DispatchFuncResult(ctx context.Context, values []reflect.Value) {
found = b
if !found {
// skip everything, we don't care about other return values,
// this boolean is the heighest in order.
// this boolean is the higher in order.
break
}
continue

View File

@@ -37,7 +37,7 @@ var DefaultViewExt = ".html"
func ensureExt(s string) string {
if len(s) == 0 {
return "index.html"
return "index" + DefaultViewExt
}
if strings.IndexByte(s, dotB) < 1 {