mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c. Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/kataras/iris/core/memstore"
|
||||
"github.com/kataras/iris/v12/core/memstore"
|
||||
|
||||
"github.com/Shopify/goreferrer"
|
||||
"github.com/fatih/structs"
|
||||
|
||||
@@ -46,9 +46,9 @@ func HandlerFileLine(h Handler) (file string, line int) {
|
||||
func MainHandlerName(handlers Handlers) (name string) {
|
||||
for i := 0; i < len(handlers); i++ {
|
||||
name = HandlerName(handlers[i])
|
||||
if !strings.HasPrefix(name, "github.com/kataras/iris") ||
|
||||
strings.HasPrefix(name, "github.com/kataras/iris/core/router.StripPrefix") ||
|
||||
strings.HasPrefix(name, "github.com/kataras/iris/core/router.FileServer") {
|
||||
if !strings.HasPrefix(name, "github.com/kataras/iris/v12") ||
|
||||
strings.HasPrefix(name, "github.com/kataras/iris/v12/core/router.StripPrefix") ||
|
||||
strings.HasPrefix(name, "github.com/kataras/iris/v12/core/router.FileServer") {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/kataras/iris/core/memstore"
|
||||
"github.com/kataras/iris/v12/core/memstore"
|
||||
)
|
||||
|
||||
// RequestParams is a key string - value string storage which
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/kataras/iris/macro"
|
||||
"github.com/kataras/iris/v12/macro"
|
||||
)
|
||||
|
||||
// RouteReadOnly allows decoupled access to the current route
|
||||
|
||||
Reference in New Issue
Block a user