diff --git a/HISTORY.md b/HISTORY.md index 5daa5ec1..1315b4ba 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -86,7 +86,7 @@ Commit log: https://github.com/kataras/iris/compare/v11.2.3...v11.2.4 Sessions as middleware: ```go -import "github.com/kataras/iris/sessions" +import "github.com/kataras/iris/v12/sessions" // [...] app := iris.New() diff --git a/HISTORY_ES.md b/HISTORY_ES.md index b4569917..c3e4677e 100644 --- a/HISTORY_ES.md +++ b/HISTORY_ES.md @@ -86,7 +86,7 @@ Registro de commits: https://github.com/kataras/iris/compare/v11.2.3...v11.2.4 Sesiones como middleware: ```go -import "github.com/kataras/iris/sessions" +import "github.com/kataras/iris/v12/sessions" // [...] app := iris.New() diff --git a/README.md b/README.md index a9b18b6f..2390e0d8 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,6 @@ Iris is a fast, simple yet fully featured and very efficient web framework for G Learn what [others say about Iris](https://iris-go.com/testimonials/) and **star** this github repository. -> Version 11.2 **released!** - -[![https://www.facebook.com/iris.framework/posts/3276606095684693](https://iris-go.com/images/iris-112-released.png)](https://www.facebook.com/iris.framework/posts/3276606095684693) - ## Learning Iris
@@ -25,7 +21,7 @@ $ cat example.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/README_ES.md b/README_ES.md index 610a6d16..db2a4ac2 100644 --- a/README_ES.md +++ b/README_ES.md @@ -25,7 +25,7 @@ $ cat ejemplo.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/README_FA.md b/README_FA.md index f15e7228..c7c6a5fc 100644 --- a/README_FA.md +++ b/README_FA.md @@ -41,7 +41,7 @@ $ cat example.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/README_GR.md b/README_GR.md index 2a07c7bc..468711be 100644 --- a/README_GR.md +++ b/README_GR.md @@ -21,7 +21,7 @@ $ cat example.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/README_KO.md b/README_KO.md index 077495f9..b80abf26 100644 --- a/README_KO.md +++ b/README_KO.md @@ -25,7 +25,7 @@ $ cat example.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/README_ZH.md b/README_ZH.md index b0dbc85c..93cc736d 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -23,7 +23,7 @@ $ cat example.go ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.Default() diff --git a/VERSION b/VERSION index 26eac489..fe09e979 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.2.8:https://github.com/kataras/iris/releases/tag/v11.2.8 \ No newline at end of file +12.0.0:https://github.com/kataras/iris/releases/tag/v12.0.0 \ No newline at end of file diff --git a/_benchmarks/iris-mvc-templates/controllers/about_controller.go b/_benchmarks/iris-mvc-templates/controllers/about_controller.go index ea558509..27f48312 100644 --- a/_benchmarks/iris-mvc-templates/controllers/about_controller.go +++ b/_benchmarks/iris-mvc-templates/controllers/about_controller.go @@ -1,6 +1,6 @@ package controllers -import "github.com/kataras/iris/mvc" +import "github.com/kataras/iris/v12/mvc" type AboutController struct{} diff --git a/_benchmarks/iris-mvc-templates/controllers/contact_controller.go b/_benchmarks/iris-mvc-templates/controllers/contact_controller.go index 6e9757e9..ad58fd30 100644 --- a/_benchmarks/iris-mvc-templates/controllers/contact_controller.go +++ b/_benchmarks/iris-mvc-templates/controllers/contact_controller.go @@ -1,6 +1,6 @@ package controllers -import "github.com/kataras/iris/mvc" +import "github.com/kataras/iris/v12/mvc" type ContactController struct{} diff --git a/_benchmarks/iris-mvc-templates/controllers/home_controller.go b/_benchmarks/iris-mvc-templates/controllers/home_controller.go index 575c3a36..12cc8a19 100644 --- a/_benchmarks/iris-mvc-templates/controllers/home_controller.go +++ b/_benchmarks/iris-mvc-templates/controllers/home_controller.go @@ -1,6 +1,6 @@ package controllers -import "github.com/kataras/iris/mvc" +import "github.com/kataras/iris/v12/mvc" type HomeController struct{} diff --git a/_benchmarks/iris-mvc-templates/controllers/index_controller.go b/_benchmarks/iris-mvc-templates/controllers/index_controller.go index 472c4f47..08e79b50 100644 --- a/_benchmarks/iris-mvc-templates/controllers/index_controller.go +++ b/_benchmarks/iris-mvc-templates/controllers/index_controller.go @@ -1,6 +1,6 @@ package controllers -import "github.com/kataras/iris/mvc" +import "github.com/kataras/iris/v12/mvc" type IndexController struct{} diff --git a/_benchmarks/iris-mvc-templates/main.go b/_benchmarks/iris-mvc-templates/main.go index c743e15a..a572810f 100644 --- a/_benchmarks/iris-mvc-templates/main.go +++ b/_benchmarks/iris-mvc-templates/main.go @@ -1,11 +1,11 @@ package main import ( - "github.com/kataras/iris/_benchmarks/iris-mvc-templates/controllers" + "github.com/kataras/iris/v12/_benchmarks/iris-mvc-templates/controllers" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/mvc" ) const ( diff --git a/_benchmarks/iris-mvc/main.go b/_benchmarks/iris-mvc/main.go index 0399d256..be93c02d 100644 --- a/_benchmarks/iris-mvc/main.go +++ b/_benchmarks/iris-mvc/main.go @@ -1,10 +1,10 @@ package main import ( - "github.com/kataras/iris/_benchmarks/iris-mvc/controllers" + "github.com/kataras/iris/v12/_benchmarks/iris-mvc/controllers" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_benchmarks/iris-sessions/main.go b/_benchmarks/iris-sessions/main.go index d5a34062..f84e1f07 100644 --- a/_benchmarks/iris-sessions/main.go +++ b/_benchmarks/iris-sessions/main.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/sessions" ) var sess = sessions.New(sessions.Config{ diff --git a/_benchmarks/iris/main.go b/_benchmarks/iris/main.go index d9885e88..9f693b1a 100644 --- a/_benchmarks/iris/main.go +++ b/_benchmarks/iris/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/README_ZH.md b/_examples/README_ZH.md index 7d7847c2..876e0da5 100644 --- a/_examples/README_ZH.md +++ b/_examples/README_ZH.md @@ -142,8 +142,8 @@ Iris 支持快速的请求数据,模型,持久性数据和绑定。 ```go import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/apidoc/yaag/main.go b/_examples/apidoc/yaag/main.go index 619ecb64..fa9169c5 100644 --- a/_examples/apidoc/yaag/main.go +++ b/_examples/apidoc/yaag/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/betacraft/yaag/irisyaag" "github.com/betacraft/yaag/yaag" diff --git a/_examples/authentication/basicauth/main.go b/_examples/authentication/basicauth/main.go index 8a7caadb..643d3e03 100644 --- a/_examples/authentication/basicauth/main.go +++ b/_examples/authentication/basicauth/main.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/basicauth" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/basicauth" ) func newApp() *iris.Application { diff --git a/_examples/authentication/basicauth/main_test.go b/_examples/authentication/basicauth/main_test.go index 2e123c0c..e3f27486 100644 --- a/_examples/authentication/basicauth/main_test.go +++ b/_examples/authentication/basicauth/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestBasicAuth(t *testing.T) { diff --git a/_examples/authentication/oauth2/main.go b/_examples/authentication/oauth2/main.go index e14824de..b16702d5 100644 --- a/_examples/authentication/oauth2/main.go +++ b/_examples/authentication/oauth2/main.go @@ -24,9 +24,9 @@ import ( "os" "sort" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" "github.com/gorilla/securecookie" // optionally, used for session's encoder/decoder diff --git a/_examples/cache/client-side/main.go b/_examples/cache/client-side/main.go index 8b21438e..31e7aefe 100644 --- a/_examples/cache/client-side/main.go +++ b/_examples/cache/client-side/main.go @@ -8,7 +8,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) const refreshEvery = 10 * time.Second diff --git a/_examples/cache/simple/main.go b/_examples/cache/simple/main.go index b5531c7f..49e46567 100644 --- a/_examples/cache/simple/main.go +++ b/_examples/cache/simple/main.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/cache" + "github.com/kataras/iris/v12/cache" ) var markdownContents = []byte(`## Hello Markdown diff --git a/_examples/configuration/README.md b/_examples/configuration/README.md index 774c0182..6cfad96b 100644 --- a/_examples/configuration/README.md +++ b/_examples/configuration/README.md @@ -15,7 +15,7 @@ which completes this can be passed at `Application#Configure` and/or `Applicatio package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -46,7 +46,7 @@ func main() { package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -87,7 +87,7 @@ Charset = "UTF-8" package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -119,7 +119,7 @@ Charset: UTF-8 package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -237,8 +237,8 @@ package counter import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/core/host" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/core/host" ) func Configurator(app *iris.Application) { @@ -271,7 +271,7 @@ package main import ( "counter" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/configuration/from-configuration-structure/main.go b/_examples/configuration/from-configuration-structure/main.go index b3da663e..540c0e7d 100644 --- a/_examples/configuration/from-configuration-structure/main.go +++ b/_examples/configuration/from-configuration-structure/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/configuration/from-toml-file/main.go b/_examples/configuration/from-toml-file/main.go index fe08b255..fe824489 100644 --- a/_examples/configuration/from-toml-file/main.go +++ b/_examples/configuration/from-toml-file/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/configuration/from-yaml-file/main.go b/_examples/configuration/from-yaml-file/main.go index ad42e74b..3092ed2d 100644 --- a/_examples/configuration/from-yaml-file/main.go +++ b/_examples/configuration/from-yaml-file/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/configuration/from-yaml-file/shared-configuration/main.go b/_examples/configuration/from-yaml-file/shared-configuration/main.go index 25159af3..1b56e5b4 100644 --- a/_examples/configuration/from-yaml-file/shared-configuration/main.go +++ b/_examples/configuration/from-yaml-file/shared-configuration/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/configuration/functional/main.go b/_examples/configuration/functional/main.go index 9165b5d3..674b2330 100644 --- a/_examples/configuration/functional/main.go +++ b/_examples/configuration/functional/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/convert-handlers/negroni-like/main.go b/_examples/convert-handlers/negroni-like/main.go index 6de768ff..b1650605 100644 --- a/_examples/convert-handlers/negroni-like/main.go +++ b/_examples/convert-handlers/negroni-like/main.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/convert-handlers/nethttp/main.go b/_examples/convert-handlers/nethttp/main.go index 49fffabf..fee83c8f 100644 --- a/_examples/convert-handlers/nethttp/main.go +++ b/_examples/convert-handlers/nethttp/main.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go b/_examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go index 1155dc1d..288dc8f7 100644 --- a/_examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go +++ b/_examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go @@ -6,7 +6,7 @@ import ( "net/http" "runtime/debug" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/getsentry/raven-go" ) diff --git a/_examples/convert-handlers/real-usecase-raven/writing-middleware/main.go b/_examples/convert-handlers/real-usecase-raven/writing-middleware/main.go index 5360c816..e40f63b9 100644 --- a/_examples/convert-handlers/real-usecase-raven/writing-middleware/main.go +++ b/_examples/convert-handlers/real-usecase-raven/writing-middleware/main.go @@ -5,7 +5,7 @@ import ( "fmt" "runtime/debug" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/getsentry/raven-go" ) diff --git a/_examples/cookies/basic/main.go b/_examples/cookies/basic/main.go index 9b3eee42..4bf5796c 100644 --- a/_examples/cookies/basic/main.go +++ b/_examples/cookies/basic/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func newApp() *iris.Application { app := iris.New() diff --git a/_examples/cookies/basic/main_test.go b/_examples/cookies/basic/main_test.go index f2edd2e4..403392bd 100644 --- a/_examples/cookies/basic/main_test.go +++ b/_examples/cookies/basic/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestCookiesBasic(t *testing.T) { diff --git a/_examples/cookies/securecookie/main.go b/_examples/cookies/securecookie/main.go index 9e5dd5cd..a355bdb2 100644 --- a/_examples/cookies/securecookie/main.go +++ b/_examples/cookies/securecookie/main.go @@ -6,7 +6,7 @@ package main // $ go run main.go import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/gorilla/securecookie" ) diff --git a/_examples/cookies/securecookie/main_test.go b/_examples/cookies/securecookie/main_test.go index 1298e310..f6217fd9 100644 --- a/_examples/cookies/securecookie/main_test.go +++ b/_examples/cookies/securecookie/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestCookiesBasic(t *testing.T) { diff --git a/_examples/experimental-handlers/casbin/middleware/main.go b/_examples/experimental-handlers/casbin/middleware/main.go index fd2e9d36..5d26e920 100644 --- a/_examples/experimental-handlers/casbin/middleware/main.go +++ b/_examples/experimental-handlers/casbin/middleware/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/casbin/casbin/v2" cm "github.com/iris-contrib/middleware/casbin" diff --git a/_examples/experimental-handlers/casbin/middleware/main_test.go b/_examples/experimental-handlers/casbin/middleware/main_test.go index d806af1c..a4caf0f0 100644 --- a/_examples/experimental-handlers/casbin/middleware/main_test.go +++ b/_examples/experimental-handlers/casbin/middleware/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestCasbinMiddleware(t *testing.T) { diff --git a/_examples/experimental-handlers/casbin/wrapper/main.go b/_examples/experimental-handlers/casbin/wrapper/main.go index e544cf3c..dffac88d 100644 --- a/_examples/experimental-handlers/casbin/wrapper/main.go +++ b/_examples/experimental-handlers/casbin/wrapper/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/casbin/casbin/v2" cm "github.com/iris-contrib/middleware/casbin" diff --git a/_examples/experimental-handlers/casbin/wrapper/main_test.go b/_examples/experimental-handlers/casbin/wrapper/main_test.go index d69ec42e..4fd75286 100644 --- a/_examples/experimental-handlers/casbin/wrapper/main_test.go +++ b/_examples/experimental-handlers/casbin/wrapper/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestCasbinWrapper(t *testing.T) { diff --git a/_examples/experimental-handlers/cloudwatch/simple/main.go b/_examples/experimental-handlers/cloudwatch/simple/main.go index dbe440be..4cc71f26 100644 --- a/_examples/experimental-handlers/cloudwatch/simple/main.go +++ b/_examples/experimental-handlers/cloudwatch/simple/main.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatch" diff --git a/_examples/experimental-handlers/cors/simple/client/main.go b/_examples/experimental-handlers/cors/simple/client/main.go index 9163f29a..03f7db49 100644 --- a/_examples/experimental-handlers/cors/simple/client/main.go +++ b/_examples/experimental-handlers/cors/simple/client/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // NOTE: THIS IS OPTIONALLY. diff --git a/_examples/experimental-handlers/cors/simple/main.go b/_examples/experimental-handlers/cors/simple/main.go index 5003329b..90b2b37e 100644 --- a/_examples/experimental-handlers/cors/simple/main.go +++ b/_examples/experimental-handlers/cors/simple/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/experimental-handlers/csrf/main.go b/_examples/experimental-handlers/csrf/main.go index 20964ac0..b1bff1aa 100644 --- a/_examples/experimental-handlers/csrf/main.go +++ b/_examples/experimental-handlers/csrf/main.go @@ -13,7 +13,7 @@ package main // $ go get -u github.com/iris-contrib/middleware/... import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/iris-contrib/middleware/csrf" ) diff --git a/_examples/experimental-handlers/jwt/main.go b/_examples/experimental-handlers/jwt/main.go index 0caed7a8..878ffc86 100644 --- a/_examples/experimental-handlers/jwt/main.go +++ b/_examples/experimental-handlers/jwt/main.go @@ -8,7 +8,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/iris-contrib/middleware/jwt" ) diff --git a/_examples/experimental-handlers/newrelic/simple/main.go b/_examples/experimental-handlers/newrelic/simple/main.go index a4e762a3..28d3e1e2 100644 --- a/_examples/experimental-handlers/newrelic/simple/main.go +++ b/_examples/experimental-handlers/newrelic/simple/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/iris-contrib/middleware/newrelic" ) diff --git a/_examples/experimental-handlers/prometheus/simple/main.go b/_examples/experimental-handlers/prometheus/simple/main.go index 33758819..2cc53ab5 100644 --- a/_examples/experimental-handlers/prometheus/simple/main.go +++ b/_examples/experimental-handlers/prometheus/simple/main.go @@ -4,7 +4,7 @@ import ( "math/rand" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" prometheusMiddleware "github.com/iris-contrib/middleware/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/_examples/experimental-handlers/secure/simple/main.go b/_examples/experimental-handlers/secure/simple/main.go index 8f021e79..64359dde 100644 --- a/_examples/experimental-handlers/secure/simple/main.go +++ b/_examples/experimental-handlers/secure/simple/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/iris-contrib/middleware/secure" ) diff --git a/_examples/experimental-handlers/tollboothic/limit-handler/main.go b/_examples/experimental-handlers/tollboothic/limit-handler/main.go index a7a255b4..2e878136 100644 --- a/_examples/experimental-handlers/tollboothic/limit-handler/main.go +++ b/_examples/experimental-handlers/tollboothic/limit-handler/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/didip/tollbooth" "github.com/iris-contrib/middleware/tollboothic" diff --git a/_examples/file-server/basic/main.go b/_examples/file-server/basic/main.go index 2c19cfd3..94239ccd 100644 --- a/_examples/file-server/basic/main.go +++ b/_examples/file-server/basic/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func newApp() *iris.Application { diff --git a/_examples/file-server/basic/main_test.go b/_examples/file-server/basic/main_test.go index 0d1c485e..04ab1484 100644 --- a/_examples/file-server/basic/main_test.go +++ b/_examples/file-server/basic/main_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type resource string diff --git a/_examples/file-server/embedding-files-into-app/main.go b/_examples/file-server/embedding-files-into-app/main.go index 17f94f03..1f8a8db8 100644 --- a/_examples/file-server/embedding-files-into-app/main.go +++ b/_examples/file-server/embedding-files-into-app/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Follow these steps first: diff --git a/_examples/file-server/embedding-files-into-app/main_test.go b/_examples/file-server/embedding-files-into-app/main_test.go index d2d44828..27f391cc 100644 --- a/_examples/file-server/embedding-files-into-app/main_test.go +++ b/_examples/file-server/embedding-files-into-app/main_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type resource string diff --git a/_examples/file-server/embedding-gziped-files-into-app/main.go b/_examples/file-server/embedding-gziped-files-into-app/main.go index 75640faf..8e2041e0 100644 --- a/_examples/file-server/embedding-gziped-files-into-app/main.go +++ b/_examples/file-server/embedding-gziped-files-into-app/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // NOTE: need different tool than the "embedding-files-into-app" example. diff --git a/_examples/file-server/embedding-gziped-files-into-app/main_test.go b/_examples/file-server/embedding-gziped-files-into-app/main_test.go index b7c03d21..b774dd63 100644 --- a/_examples/file-server/embedding-gziped-files-into-app/main_test.go +++ b/_examples/file-server/embedding-gziped-files-into-app/main_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" "github.com/klauspost/compress/gzip" ) diff --git a/_examples/file-server/favicon/main.go b/_examples/file-server/favicon/main.go index dd857e6e..9f84649c 100644 --- a/_examples/file-server/favicon/main.go +++ b/_examples/file-server/favicon/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/file-server/send-files/main.go b/_examples/file-server/send-files/main.go index ca3d5045..709750f7 100644 --- a/_examples/file-server/send-files/main.go +++ b/_examples/file-server/send-files/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/file-server/single-page-application/basic/main.go b/_examples/file-server/single-page-application/basic/main.go index fc173bcd..4d86e164 100644 --- a/_examples/file-server/single-page-application/basic/main.go +++ b/_examples/file-server/single-page-application/basic/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // same as embedded-single-page-application but without go-bindata, the files are "physical" stored in the diff --git a/_examples/file-server/single-page-application/basic/main_test.go b/_examples/file-server/single-page-application/basic/main_test.go index 6e7b3410..0ca13efa 100644 --- a/_examples/file-server/single-page-application/basic/main_test.go +++ b/_examples/file-server/single-page-application/basic/main_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type resource string diff --git a/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go b/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go index 6c3522aa..729b4b32 100644 --- a/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go +++ b/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" // $ go get -u github.com/shuLhan/go-bindata/... // $ go-bindata ./public/... diff --git a/_examples/file-server/single-page-application/embedded-single-page-application/main.go b/_examples/file-server/single-page-application/embedded-single-page-application/main.go index 2204f8f9..269338f6 100644 --- a/_examples/file-server/single-page-application/embedded-single-page-application/main.go +++ b/_examples/file-server/single-page-application/embedded-single-page-application/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // $ go get -u github.com/shuLhan/go-bindata/... diff --git a/_examples/file-server/single-page-application/embedded-single-page-application/main_test.go b/_examples/file-server/single-page-application/embedded-single-page-application/main_test.go index 85699827..dc4807b9 100644 --- a/_examples/file-server/single-page-application/embedded-single-page-application/main_test.go +++ b/_examples/file-server/single-page-application/embedded-single-page-application/main_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type resource string diff --git a/_examples/hello-world/main.go b/_examples/hello-world/main.go index 706cbc80..eebc9ff2 100644 --- a/_examples/hello-world/main.go +++ b/_examples/hello-world/main.go @@ -1,10 +1,10 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/middleware/logger" - "github.com/kataras/iris/middleware/recover" + "github.com/kataras/iris/v12/middleware/logger" + "github.com/kataras/iris/v12/middleware/recover" ) func main() { diff --git a/_examples/hero/basic/main.go b/_examples/hero/basic/main.go index e027faf4..03707535 100644 --- a/_examples/hero/basic/main.go +++ b/_examples/hero/basic/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/hero" ) func main() { diff --git a/_examples/hero/overview/datasource/movies.go b/_examples/hero/overview/datasource/movies.go index dbbe4fdf..ee07c357 100644 --- a/_examples/hero/overview/datasource/movies.go +++ b/_examples/hero/overview/datasource/movies.go @@ -2,7 +2,7 @@ package datasource -import "github.com/kataras/iris/_examples/hero/overview/datamodels" +import "github.com/kataras/iris/v12/_examples/hero/overview/datamodels" // Movies is our imaginary data source. var Movies = map[int64]datamodels.Movie{ diff --git a/_examples/hero/overview/main.go b/_examples/hero/overview/main.go index efb18884..35ac4054 100644 --- a/_examples/hero/overview/main.go +++ b/_examples/hero/overview/main.go @@ -3,14 +3,14 @@ package main import ( - "github.com/kataras/iris/_examples/hero/overview/datasource" - "github.com/kataras/iris/_examples/hero/overview/repositories" - "github.com/kataras/iris/_examples/hero/overview/services" - "github.com/kataras/iris/_examples/hero/overview/web/middleware" - "github.com/kataras/iris/_examples/hero/overview/web/routes" + "github.com/kataras/iris/v12/_examples/hero/overview/datasource" + "github.com/kataras/iris/v12/_examples/hero/overview/repositories" + "github.com/kataras/iris/v12/_examples/hero/overview/services" + "github.com/kataras/iris/v12/_examples/hero/overview/web/middleware" + "github.com/kataras/iris/v12/_examples/hero/overview/web/routes" - "github.com/kataras/iris" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/hero" ) func main() { diff --git a/_examples/hero/overview/repositories/movie_repository.go b/_examples/hero/overview/repositories/movie_repository.go index de3275ac..491d1785 100644 --- a/_examples/hero/overview/repositories/movie_repository.go +++ b/_examples/hero/overview/repositories/movie_repository.go @@ -6,7 +6,7 @@ import ( "errors" "sync" - "github.com/kataras/iris/_examples/hero/overview/datamodels" + "github.com/kataras/iris/v12/_examples/hero/overview/datamodels" ) // Query represents the visitor and action queries. diff --git a/_examples/hero/overview/services/movie_service.go b/_examples/hero/overview/services/movie_service.go index 16ed6412..109e88d9 100644 --- a/_examples/hero/overview/services/movie_service.go +++ b/_examples/hero/overview/services/movie_service.go @@ -3,8 +3,8 @@ package services import ( - "github.com/kataras/iris/_examples/hero/overview/datamodels" - "github.com/kataras/iris/_examples/hero/overview/repositories" + "github.com/kataras/iris/v12/_examples/hero/overview/datamodels" + "github.com/kataras/iris/v12/_examples/hero/overview/repositories" ) // MovieService handles some of the CRUID operations of the movie datamodel. diff --git a/_examples/hero/overview/web/middleware/basicauth.go b/_examples/hero/overview/web/middleware/basicauth.go index c9b6eacf..5d61fc72 100644 --- a/_examples/hero/overview/web/middleware/basicauth.go +++ b/_examples/hero/overview/web/middleware/basicauth.go @@ -2,7 +2,7 @@ package middleware -import "github.com/kataras/iris/middleware/basicauth" +import "github.com/kataras/iris/v12/middleware/basicauth" // BasicAuth middleware sample. var BasicAuth = basicauth.New(basicauth.Config{ diff --git a/_examples/hero/overview/web/routes/hello.go b/_examples/hero/overview/web/routes/hello.go index e3bba5fc..e0c4a029 100644 --- a/_examples/hero/overview/web/routes/hello.go +++ b/_examples/hero/overview/web/routes/hello.go @@ -5,7 +5,7 @@ package routes import ( "errors" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12/hero" ) var helloView = hero.View{ diff --git a/_examples/hero/overview/web/routes/movies.go b/_examples/hero/overview/web/routes/movies.go index d3947d1b..9b6af164 100644 --- a/_examples/hero/overview/web/routes/movies.go +++ b/_examples/hero/overview/web/routes/movies.go @@ -5,10 +5,10 @@ package routes import ( "errors" - "github.com/kataras/iris/_examples/hero/overview/datamodels" - "github.com/kataras/iris/_examples/hero/overview/services" + "github.com/kataras/iris/v12/_examples/hero/overview/datamodels" + "github.com/kataras/iris/v12/_examples/hero/overview/services" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Movies returns list of the movies. diff --git a/_examples/hero/sessions/main.go b/_examples/hero/sessions/main.go index 76034532..6ee76a16 100644 --- a/_examples/hero/sessions/main.go +++ b/_examples/hero/sessions/main.go @@ -3,11 +3,11 @@ package main import ( "time" - "github.com/kataras/iris/_examples/hero/sessions/routes" + "github.com/kataras/iris/v12/_examples/hero/sessions/routes" - "github.com/kataras/iris" - "github.com/kataras/iris/hero" // <- IMPORTANT - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/hero" // <- IMPORTANT + "github.com/kataras/iris/v12/sessions" ) func main() { diff --git a/_examples/hero/sessions/routes/index.go b/_examples/hero/sessions/routes/index.go index d5b12870..2d3611ad 100644 --- a/_examples/hero/sessions/routes/index.go +++ b/_examples/hero/sessions/routes/index.go @@ -1,8 +1,8 @@ package routes import ( - "github.com/kataras/iris" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/sessions" ) // Index will increment a simple int version based on the visits that this user/session did. diff --git a/_examples/hero/smart-contract/main.go b/_examples/hero/smart-contract/main.go index af321cec..1ee5dc50 100644 --- a/_examples/hero/smart-contract/main.go +++ b/_examples/hero/smart-contract/main.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/hero" // External package to optionally filter JSON responses before sent, // see `sendJSON` for more. diff --git a/_examples/http-listening/README.md b/_examples/http-listening/README.md index 7df06813..9d078d2f 100644 --- a/_examples/http-listening/README.md +++ b/_examples/http-listening/README.md @@ -41,7 +41,7 @@ import ( "os" "net" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -85,7 +85,7 @@ import ( // - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details. "github.com/valyala/tcplisten" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // go get github.com/valyala/tcplisten @@ -227,7 +227,7 @@ import ( "context" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) diff --git a/_examples/http-listening/custom-httpserver/easy-way/main.go b/_examples/http-listening/custom-httpserver/easy-way/main.go index 158b2c5a..a4e6dee7 100644 --- a/_examples/http-listening/custom-httpserver/easy-way/main.go +++ b/_examples/http-listening/custom-httpserver/easy-way/main.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/custom-httpserver/multi/main.go b/_examples/http-listening/custom-httpserver/multi/main.go index d7758dac..98802b74 100644 --- a/_examples/http-listening/custom-httpserver/multi/main.go +++ b/_examples/http-listening/custom-httpserver/multi/main.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/custom-httpserver/std-way/main.go b/_examples/http-listening/custom-httpserver/std-way/main.go index d3551836..37f4f67d 100644 --- a/_examples/http-listening/custom-httpserver/std-way/main.go +++ b/_examples/http-listening/custom-httpserver/std-way/main.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/custom-listener/main.go b/_examples/http-listening/custom-listener/main.go index 90d86214..eb156fd4 100644 --- a/_examples/http-listening/custom-listener/main.go +++ b/_examples/http-listening/custom-listener/main.go @@ -3,7 +3,7 @@ package main import ( "net" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/custom-listener/unix-reuseport/main.go b/_examples/http-listening/custom-listener/unix-reuseport/main.go index e9bc96b6..c20932f7 100644 --- a/_examples/http-listening/custom-listener/unix-reuseport/main.go +++ b/_examples/http-listening/custom-listener/unix-reuseport/main.go @@ -16,7 +16,7 @@ import ( // - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details. "github.com/valyala/tcplisten" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // $ go get github.com/valyala/tcplisten diff --git a/_examples/http-listening/graceful-shutdown/custom-notifier/main.go b/_examples/http-listening/graceful-shutdown/custom-notifier/main.go index f1b38197..998aaa49 100644 --- a/_examples/http-listening/graceful-shutdown/custom-notifier/main.go +++ b/_examples/http-listening/graceful-shutdown/custom-notifier/main.go @@ -7,7 +7,7 @@ import ( "syscall" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/graceful-shutdown/default-notifier/main.go b/_examples/http-listening/graceful-shutdown/default-notifier/main.go index 0c560136..58369cbb 100644 --- a/_examples/http-listening/graceful-shutdown/default-notifier/main.go +++ b/_examples/http-listening/graceful-shutdown/default-notifier/main.go @@ -4,7 +4,7 @@ import ( stdContext "context" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Before continue: diff --git a/_examples/http-listening/http3-quic/main.go b/_examples/http-listening/http3-quic/main.go index e7e03f5f..54eebfbc 100644 --- a/_examples/http-listening/http3-quic/main.go +++ b/_examples/http-listening/http3-quic/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/lucas-clemente/quic-go/http3" ) diff --git a/_examples/http-listening/iris-configurator-and-host-configurator/main.go b/_examples/http-listening/iris-configurator-and-host-configurator/main.go index f1d7ad85..492bc146 100644 --- a/_examples/http-listening/iris-configurator-and-host-configurator/main.go +++ b/_examples/http-listening/iris-configurator-and-host-configurator/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/listen-addr-public/main.go b/_examples/http-listening/listen-addr-public/main.go index d0be9d44..7446f46a 100644 --- a/_examples/http-listening/listen-addr-public/main.go +++ b/_examples/http-listening/listen-addr-public/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/http-listening/listen-addr/main.go b/_examples/http-listening/listen-addr/main.go index aef4e86c..9c7d3207 100644 --- a/_examples/http-listening/listen-addr/main.go +++ b/_examples/http-listening/listen-addr/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/listen-addr/omit-server-errors/main.go b/_examples/http-listening/listen-addr/omit-server-errors/main.go index db2e01bf..3a73b585 100644 --- a/_examples/http-listening/listen-addr/omit-server-errors/main.go +++ b/_examples/http-listening/listen-addr/omit-server-errors/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/listen-addr/omit-server-errors/main_test.go b/_examples/http-listening/listen-addr/omit-server-errors/main_test.go index 8aa74580..9d4a23d8 100644 --- a/_examples/http-listening/listen-addr/omit-server-errors/main_test.go +++ b/_examples/http-listening/listen-addr/omit-server-errors/main_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func logger(app *iris.Application) *bytes.Buffer { diff --git a/_examples/http-listening/listen-letsencrypt/main.go b/_examples/http-listening/listen-letsencrypt/main.go index bf325288..12fcc9c8 100644 --- a/_examples/http-listening/listen-letsencrypt/main.go +++ b/_examples/http-listening/listen-letsencrypt/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http-listening/listen-tls/main.go b/_examples/http-listening/listen-tls/main.go index d2fa1fac..35cf0e92 100644 --- a/_examples/http-listening/listen-tls/main.go +++ b/_examples/http-listening/listen-tls/main.go @@ -3,9 +3,9 @@ package main import ( "net/url" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/core/host" + "github.com/kataras/iris/v12/core/host" ) func main() { diff --git a/_examples/http-listening/listen-unix/main.go b/_examples/http-listening/listen-unix/main.go index 6e8d69de..65d6e414 100644 --- a/_examples/http-listening/listen-unix/main.go +++ b/_examples/http-listening/listen-unix/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/core/netutil" ) func main() { diff --git a/_examples/http-listening/notify-on-shutdown/main.go b/_examples/http-listening/notify-on-shutdown/main.go index 9a6e3709..a7564b02 100644 --- a/_examples/http-listening/notify-on-shutdown/main.go +++ b/_examples/http-listening/notify-on-shutdown/main.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/extract-referer/main.go b/_examples/http_request/extract-referer/main.go index bfe8e8d7..9b197224 100644 --- a/_examples/http_request/extract-referer/main.go +++ b/_examples/http_request/extract-referer/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/read-custom-per-type/main.go b/_examples/http_request/read-custom-per-type/main.go index 2c339988..0e29f647 100644 --- a/_examples/http_request/read-custom-per-type/main.go +++ b/_examples/http_request/read-custom-per-type/main.go @@ -3,7 +3,7 @@ package main import ( "gopkg.in/yaml.v2" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/read-custom-per-type/main_test.go b/_examples/http_request/read-custom-per-type/main_test.go index 323b08b3..70b96c04 100644 --- a/_examples/http_request/read-custom-per-type/main_test.go +++ b/_examples/http_request/read-custom-per-type/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestReadCustomPerType(t *testing.T) { diff --git a/_examples/http_request/read-custom-via-unmarshaler/main.go b/_examples/http_request/read-custom-via-unmarshaler/main.go index 4c4bcf55..41e12372 100644 --- a/_examples/http_request/read-custom-via-unmarshaler/main.go +++ b/_examples/http_request/read-custom-via-unmarshaler/main.go @@ -3,7 +3,7 @@ package main import ( "gopkg.in/yaml.v2" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/read-custom-via-unmarshaler/main_test.go b/_examples/http_request/read-custom-via-unmarshaler/main_test.go index a068a65d..75efdd76 100644 --- a/_examples/http_request/read-custom-via-unmarshaler/main_test.go +++ b/_examples/http_request/read-custom-via-unmarshaler/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestReadCustomViaUnmarshaler(t *testing.T) { diff --git a/_examples/http_request/read-form/main.go b/_examples/http_request/read-form/main.go index 148bb195..7c79b5dc 100644 --- a/_examples/http_request/read-form/main.go +++ b/_examples/http_request/read-form/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type Visitor struct { diff --git a/_examples/http_request/read-json-struct-validation/main.go b/_examples/http_request/read-json-struct-validation/main.go index d75b75e1..3f608007 100644 --- a/_examples/http_request/read-json-struct-validation/main.go +++ b/_examples/http_request/read-json-struct-validation/main.go @@ -5,7 +5,7 @@ package main import ( "fmt" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" // $ go get gopkg.in/go-playground/validator.v9 "gopkg.in/go-playground/validator.v9" ) diff --git a/_examples/http_request/read-json/main.go b/_examples/http_request/read-json/main.go index 2d4748e4..892dac22 100644 --- a/_examples/http_request/read-json/main.go +++ b/_examples/http_request/read-json/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type Company struct { diff --git a/_examples/http_request/read-many/main.go b/_examples/http_request/read-many/main.go index f18f0bf9..007902a0 100644 --- a/_examples/http_request/read-many/main.go +++ b/_examples/http_request/read-many/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/read-query/main.go b/_examples/http_request/read-query/main.go index a3ce1019..f0576038 100644 --- a/_examples/http_request/read-query/main.go +++ b/_examples/http_request/read-query/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type MyType struct { diff --git a/_examples/http_request/read-xml/main.go b/_examples/http_request/read-xml/main.go index 5261bcfa..9bac9e50 100644 --- a/_examples/http_request/read-xml/main.go +++ b/_examples/http_request/read-xml/main.go @@ -3,7 +3,7 @@ package main import ( "encoding/xml" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_request/read-xml/main_test.go b/_examples/http_request/read-xml/main_test.go index da4fbd7a..3fa36b31 100644 --- a/_examples/http_request/read-xml/main_test.go +++ b/_examples/http_request/read-xml/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestReadXML(t *testing.T) { diff --git a/_examples/http_request/read-yaml/main.go b/_examples/http_request/read-yaml/main.go index f0098a1e..5d14ac13 100644 --- a/_examples/http_request/read-yaml/main.go +++ b/_examples/http_request/read-yaml/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func newApp() *iris.Application { diff --git a/_examples/http_request/read-yaml/main_test.go b/_examples/http_request/read-yaml/main_test.go index ab6b13a6..644ba558 100644 --- a/_examples/http_request/read-yaml/main_test.go +++ b/_examples/http_request/read-yaml/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestReadYAML(t *testing.T) { diff --git a/_examples/http_request/request-logger/main.go b/_examples/http_request/request-logger/main.go index 812f3b71..77fa4f3e 100644 --- a/_examples/http_request/request-logger/main.go +++ b/_examples/http_request/request-logger/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/logger" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/logger" ) func main() { diff --git a/_examples/http_request/request-logger/request-logger-file-json/main.go b/_examples/http_request/request-logger/request-logger-file-json/main.go index 9fbe24c6..6cec4a25 100644 --- a/_examples/http_request/request-logger/request-logger-file-json/main.go +++ b/_examples/http_request/request-logger/request-logger-file-json/main.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/logger" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/logger" ) const deleteFileOnExit = false diff --git a/_examples/http_request/request-logger/request-logger-file/main.go b/_examples/http_request/request-logger/request-logger-file/main.go index 1fbe5143..a0de8f0a 100644 --- a/_examples/http_request/request-logger/request-logger-file/main.go +++ b/_examples/http_request/request-logger/request-logger-file/main.go @@ -5,8 +5,8 @@ import ( "strings" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/logger" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/logger" ) const deleteFileOnExit = true diff --git a/_examples/http_request/upload-file/main.go b/_examples/http_request/upload-file/main.go index e57aa9f9..9deb55b7 100644 --- a/_examples/http_request/upload-file/main.go +++ b/_examples/http_request/upload-file/main.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) const maxSize = 5 << 20 // 5MB diff --git a/_examples/http_request/upload-files/main.go b/_examples/http_request/upload-files/main.go index 55cab74b..9a45164f 100644 --- a/_examples/http_request/upload-files/main.go +++ b/_examples/http_request/upload-files/main.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_responsewriter/content-negotiation/main.go b/_examples/http_responsewriter/content-negotiation/main.go index 7a61dbd0..640717c3 100644 --- a/_examples/http_responsewriter/content-negotiation/main.go +++ b/_examples/http_responsewriter/content-negotiation/main.go @@ -1,7 +1,7 @@ // Package main contains three different ways to render content based on the client's accepted. package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" type testdata struct { Name string `json:"name" xml:"Name"` diff --git a/_examples/http_responsewriter/content-negotiation/main_test.go b/_examples/http_responsewriter/content-negotiation/main_test.go index eb4a12b7..e31f6af1 100644 --- a/_examples/http_responsewriter/content-negotiation/main_test.go +++ b/_examples/http_responsewriter/content-negotiation/main_test.go @@ -7,7 +7,7 @@ import ( "io/ioutil" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestContentNegotiation(t *testing.T) { diff --git a/_examples/http_responsewriter/herotemplate/app.go b/_examples/http_responsewriter/herotemplate/app.go index f840aa69..015472ff 100644 --- a/_examples/http_responsewriter/herotemplate/app.go +++ b/_examples/http_responsewriter/herotemplate/app.go @@ -3,9 +3,9 @@ package main import ( "bytes" - "github.com/kataras/iris/_examples/http_responsewriter/herotemplate/template" + "github.com/kataras/iris/v12/_examples/http_responsewriter/herotemplate/template" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // $ go get -u github.com/shiyanhui/hero/hero diff --git a/_examples/http_responsewriter/quicktemplate/controllers/execute_template.go b/_examples/http_responsewriter/quicktemplate/controllers/execute_template.go index 320063dd..153f434f 100644 --- a/_examples/http_responsewriter/quicktemplate/controllers/execute_template.go +++ b/_examples/http_responsewriter/quicktemplate/controllers/execute_template.go @@ -1,9 +1,9 @@ package controllers import ( - "github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/templates" + "github.com/kataras/iris/v12/_examples/http_responsewriter/quicktemplate/templates" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // ExecuteTemplate renders a "tmpl" partial template to the `context#ResponseWriter`. diff --git a/_examples/http_responsewriter/quicktemplate/controllers/hello.go b/_examples/http_responsewriter/quicktemplate/controllers/hello.go index 2c73e1da..09cf0b36 100644 --- a/_examples/http_responsewriter/quicktemplate/controllers/hello.go +++ b/_examples/http_responsewriter/quicktemplate/controllers/hello.go @@ -1,9 +1,9 @@ package controllers import ( - "github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/templates" + "github.com/kataras/iris/v12/_examples/http_responsewriter/quicktemplate/templates" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Hello renders our ../templates/hello.qtpl file using the compiled ../templates/hello.qtpl.go file. diff --git a/_examples/http_responsewriter/quicktemplate/controllers/index.go b/_examples/http_responsewriter/quicktemplate/controllers/index.go index 6809b4a6..08410d07 100644 --- a/_examples/http_responsewriter/quicktemplate/controllers/index.go +++ b/_examples/http_responsewriter/quicktemplate/controllers/index.go @@ -1,9 +1,9 @@ package controllers import ( - "github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/templates" + "github.com/kataras/iris/v12/_examples/http_responsewriter/quicktemplate/templates" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Index renders our ../templates/index.qtpl file using the compiled ../templates/index.qtpl.go file. diff --git a/_examples/http_responsewriter/quicktemplate/main.go b/_examples/http_responsewriter/quicktemplate/main.go index e25fab4e..a7c993a9 100644 --- a/_examples/http_responsewriter/quicktemplate/main.go +++ b/_examples/http_responsewriter/quicktemplate/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/controllers" + "github.com/kataras/iris/v12/_examples/http_responsewriter/quicktemplate/controllers" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func newApp() *iris.Application { diff --git a/_examples/http_responsewriter/quicktemplate/main_test.go b/_examples/http_responsewriter/quicktemplate/main_test.go index db5a88fd..5fcf9411 100644 --- a/_examples/http_responsewriter/quicktemplate/main_test.go +++ b/_examples/http_responsewriter/quicktemplate/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestResponseWriterQuicktemplate(t *testing.T) { diff --git a/_examples/http_responsewriter/sse-third-party/main.go b/_examples/http_responsewriter/sse-third-party/main.go index 93c61032..dc8bd7af 100644 --- a/_examples/http_responsewriter/sse-third-party/main.go +++ b/_examples/http_responsewriter/sse-third-party/main.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/r3labs/sse" ) diff --git a/_examples/http_responsewriter/sse/main.go b/_examples/http_responsewriter/sse/main.go index 761328f3..042a055c 100644 --- a/_examples/http_responsewriter/sse/main.go +++ b/_examples/http_responsewriter/sse/main.go @@ -9,7 +9,7 @@ import ( "time" "github.com/kataras/golog" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // A Broker holds open client connections, diff --git a/_examples/http_responsewriter/stream-writer/main.go b/_examples/http_responsewriter/stream-writer/main.go index 6d6179f4..c7ad0836 100644 --- a/_examples/http_responsewriter/stream-writer/main.go +++ b/_examples/http_responsewriter/stream-writer/main.go @@ -5,7 +5,7 @@ import ( "io" "time" // showcase the delay - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/http_responsewriter/transactions/main.go b/_examples/http_responsewriter/transactions/main.go index 006a39f9..63757448 100644 --- a/_examples/http_responsewriter/transactions/main.go +++ b/_examples/http_responsewriter/transactions/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) func main() { diff --git a/_examples/http_responsewriter/write-gzip/main.go b/_examples/http_responsewriter/write-gzip/main.go index 2e16650e..b06e37f9 100644 --- a/_examples/http_responsewriter/write-gzip/main.go +++ b/_examples/http_responsewriter/write-gzip/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/http_responsewriter/write-rest/main.go b/_examples/http_responsewriter/write-rest/main.go index 9e150cef..1ccfdff9 100644 --- a/_examples/http_responsewriter/write-rest/main.go +++ b/_examples/http_responsewriter/write-rest/main.go @@ -3,8 +3,8 @@ package main import ( "encoding/xml" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) // User bind struct diff --git a/_examples/miscellaneous/file-logger/main.go b/_examples/miscellaneous/file-logger/main.go index 49155d69..7890a533 100644 --- a/_examples/miscellaneous/file-logger/main.go +++ b/_examples/miscellaneous/file-logger/main.go @@ -4,7 +4,7 @@ import ( "os" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // Get a filename based on the date, just for the sugar. diff --git a/_examples/miscellaneous/i18n/main.go b/_examples/miscellaneous/i18n/main.go index fa4735ab..15fdbb5f 100644 --- a/_examples/miscellaneous/i18n/main.go +++ b/_examples/miscellaneous/i18n/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/i18n" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/i18n" ) func newApp() *iris.Application { diff --git a/_examples/miscellaneous/i18n/main_test.go b/_examples/miscellaneous/i18n/main_test.go index 1fecbc79..5c9b9b4b 100644 --- a/_examples/miscellaneous/i18n/main_test.go +++ b/_examples/miscellaneous/i18n/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestI18n(t *testing.T) { diff --git a/_examples/miscellaneous/pprof/main.go b/_examples/miscellaneous/pprof/main.go index 80cb9429..9ed17ba2 100644 --- a/_examples/miscellaneous/pprof/main.go +++ b/_examples/miscellaneous/pprof/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/middleware/pprof" + "github.com/kataras/iris/v12/middleware/pprof" ) func main() { diff --git a/_examples/miscellaneous/recaptcha/custom_form/main.go b/_examples/miscellaneous/recaptcha/custom_form/main.go index e5215261..621fa28e 100644 --- a/_examples/miscellaneous/recaptcha/custom_form/main.go +++ b/_examples/miscellaneous/recaptcha/custom_form/main.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/middleware/recaptcha" + "github.com/kataras/iris/v12/middleware/recaptcha" ) // keys should be obtained by https://www.google.com/recaptcha diff --git a/_examples/miscellaneous/recaptcha/main.go b/_examples/miscellaneous/recaptcha/main.go index 3ecd161a..b0e952b4 100644 --- a/_examples/miscellaneous/recaptcha/main.go +++ b/_examples/miscellaneous/recaptcha/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/recaptcha" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/recaptcha" ) // keys should be obtained by https://www.google.com/recaptcha diff --git a/_examples/miscellaneous/recover/main.go b/_examples/miscellaneous/recover/main.go index f74f19a0..5fb7dd66 100644 --- a/_examples/miscellaneous/recover/main.go +++ b/_examples/miscellaneous/recover/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/middleware/recover" + "github.com/kataras/iris/v12/middleware/recover" ) func main() { diff --git a/_examples/mvc/basic/main.go b/_examples/mvc/basic/main.go index daf6dcff..e76b1151 100644 --- a/_examples/mvc/basic/main.go +++ b/_examples/mvc/basic/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/recover" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/recover" + "github.com/kataras/iris/v12/sessions" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/error-handler/main.go b/_examples/mvc/error-handler/main.go index 1104e861..15909ce0 100644 --- a/_examples/mvc/error-handler/main.go +++ b/_examples/mvc/error-handler/main.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/hello-world/main.go b/_examples/mvc/hello-world/main.go index c93ff4b0..e408d473 100644 --- a/_examples/mvc/hello-world/main.go +++ b/_examples/mvc/hello-world/main.go @@ -1,11 +1,11 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" - "github.com/kataras/iris/middleware/logger" - "github.com/kataras/iris/middleware/recover" + "github.com/kataras/iris/v12/middleware/logger" + "github.com/kataras/iris/v12/middleware/recover" ) // This example is equivalent to the diff --git a/_examples/mvc/hello-world/main_test.go b/_examples/mvc/hello-world/main_test.go index 5c8e2719..5fe2d368 100644 --- a/_examples/mvc/hello-world/main_test.go +++ b/_examples/mvc/hello-world/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestMVCHelloWorld(t *testing.T) { diff --git a/_examples/mvc/login/datasource/users.go b/_examples/mvc/login/datasource/users.go index fb4ea62e..fd770192 100644 --- a/_examples/mvc/login/datasource/users.go +++ b/_examples/mvc/login/datasource/users.go @@ -5,7 +5,7 @@ package datasource import ( "errors" - "github.com/kataras/iris/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" ) // Engine is from where to fetch the data, in this case the users. diff --git a/_examples/mvc/login/main.go b/_examples/mvc/login/main.go index e1824b8f..af807b51 100644 --- a/_examples/mvc/login/main.go +++ b/_examples/mvc/login/main.go @@ -5,15 +5,15 @@ package main import ( "time" - "github.com/kataras/iris/_examples/mvc/login/datasource" - "github.com/kataras/iris/_examples/mvc/login/repositories" - "github.com/kataras/iris/_examples/mvc/login/services" - "github.com/kataras/iris/_examples/mvc/login/web/controllers" - "github.com/kataras/iris/_examples/mvc/login/web/middleware" + "github.com/kataras/iris/v12/_examples/mvc/login/datasource" + "github.com/kataras/iris/v12/_examples/mvc/login/repositories" + "github.com/kataras/iris/v12/_examples/mvc/login/services" + "github.com/kataras/iris/v12/_examples/mvc/login/web/controllers" + "github.com/kataras/iris/v12/_examples/mvc/login/web/middleware" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" ) func main() { diff --git a/_examples/mvc/login/repositories/user_repository.go b/_examples/mvc/login/repositories/user_repository.go index 490f3de0..71f9deff 100644 --- a/_examples/mvc/login/repositories/user_repository.go +++ b/_examples/mvc/login/repositories/user_repository.go @@ -4,7 +4,7 @@ import ( "errors" "sync" - "github.com/kataras/iris/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" ) // Query represents the visitor and action queries. diff --git a/_examples/mvc/login/services/user_service.go b/_examples/mvc/login/services/user_service.go index 9c110f99..4921c4f9 100644 --- a/_examples/mvc/login/services/user_service.go +++ b/_examples/mvc/login/services/user_service.go @@ -3,8 +3,8 @@ package services import ( "errors" - "github.com/kataras/iris/_examples/mvc/login/datamodels" - "github.com/kataras/iris/_examples/mvc/login/repositories" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/repositories" ) // UserService handles CRUID operations of a user datamodel, diff --git a/_examples/mvc/login/web/controllers/user_controller.go b/_examples/mvc/login/web/controllers/user_controller.go index 7ab13c0d..56686619 100644 --- a/_examples/mvc/login/web/controllers/user_controller.go +++ b/_examples/mvc/login/web/controllers/user_controller.go @@ -3,12 +3,12 @@ package controllers import ( - "github.com/kataras/iris/_examples/mvc/login/datamodels" - "github.com/kataras/iris/_examples/mvc/login/services" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/services" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" ) // UserController is our /user controller. diff --git a/_examples/mvc/login/web/controllers/users_controller.go b/_examples/mvc/login/web/controllers/users_controller.go index ed111706..f8d99e41 100644 --- a/_examples/mvc/login/web/controllers/users_controller.go +++ b/_examples/mvc/login/web/controllers/users_controller.go @@ -1,10 +1,10 @@ package controllers import ( - "github.com/kataras/iris/_examples/mvc/login/datamodels" - "github.com/kataras/iris/_examples/mvc/login/services" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/services" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // UsersController is our /users API controller. diff --git a/_examples/mvc/login/web/middleware/basicauth.go b/_examples/mvc/login/web/middleware/basicauth.go index b8a5355b..eaf085ba 100644 --- a/_examples/mvc/login/web/middleware/basicauth.go +++ b/_examples/mvc/login/web/middleware/basicauth.go @@ -2,7 +2,7 @@ package middleware -import "github.com/kataras/iris/middleware/basicauth" +import "github.com/kataras/iris/v12/middleware/basicauth" // BasicAuth middleware sample. var BasicAuth = basicauth.New(basicauth.Config{ diff --git a/_examples/mvc/login/web/viewmodels/README.md b/_examples/mvc/login/web/viewmodels/README.md index 0999932d..4cd55577 100644 --- a/_examples/mvc/login/web/viewmodels/README.md +++ b/_examples/mvc/login/web/viewmodels/README.md @@ -6,10 +6,10 @@ Example: ```go import ( - "github.com/kataras/iris/_examples/mvc/login/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/login/datamodels" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) type User struct { diff --git a/_examples/mvc/middleware/main.go b/_examples/mvc/middleware/main.go index bc081531..ee6d15d2 100644 --- a/_examples/mvc/middleware/main.go +++ b/_examples/mvc/middleware/main.go @@ -5,9 +5,9 @@ package main import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/cache" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/cache" + "github.com/kataras/iris/v12/mvc" ) var cacheHandler = cache.Handler(10 * time.Second) diff --git a/_examples/mvc/middleware/per-method/main.go b/_examples/mvc/middleware/per-method/main.go index 56a61b6b..e2eadbc5 100644 --- a/_examples/mvc/middleware/per-method/main.go +++ b/_examples/mvc/middleware/per-method/main.go @@ -69,9 +69,9 @@ package main import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/cache" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/cache" + "github.com/kataras/iris/v12/mvc" ) var cacheHandler = cache.Handler(10 * time.Second) diff --git a/_examples/mvc/middleware/without-ctx-next/main.go b/_examples/mvc/middleware/without-ctx-next/main.go index baa983b0..532f89ab 100644 --- a/_examples/mvc/middleware/without-ctx-next/main.go +++ b/_examples/mvc/middleware/without-ctx-next/main.go @@ -25,8 +25,8 @@ to be executed but we don't want to add `ctx.Next()` on the `exampleController#E package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/overview/datasource/movies.go b/_examples/mvc/overview/datasource/movies.go index 9851829d..ca3ad043 100644 --- a/_examples/mvc/overview/datasource/movies.go +++ b/_examples/mvc/overview/datasource/movies.go @@ -2,7 +2,7 @@ package datasource -import "github.com/kataras/iris/_examples/mvc/overview/datamodels" +import "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" // Movies is our imaginary data source. var Movies = map[int64]datamodels.Movie{ diff --git a/_examples/mvc/overview/main.go b/_examples/mvc/overview/main.go index 22013325..21363454 100644 --- a/_examples/mvc/overview/main.go +++ b/_examples/mvc/overview/main.go @@ -3,14 +3,14 @@ package main import ( - "github.com/kataras/iris/_examples/mvc/overview/datasource" - "github.com/kataras/iris/_examples/mvc/overview/repositories" - "github.com/kataras/iris/_examples/mvc/overview/services" - "github.com/kataras/iris/_examples/mvc/overview/web/controllers" - "github.com/kataras/iris/_examples/mvc/overview/web/middleware" + "github.com/kataras/iris/v12/_examples/mvc/overview/datasource" + "github.com/kataras/iris/v12/_examples/mvc/overview/repositories" + "github.com/kataras/iris/v12/_examples/mvc/overview/services" + "github.com/kataras/iris/v12/_examples/mvc/overview/web/controllers" + "github.com/kataras/iris/v12/_examples/mvc/overview/web/middleware" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/overview/models/README.md b/_examples/mvc/overview/models/README.md index 0dc57fca..e940e80d 100644 --- a/_examples/mvc/overview/models/README.md +++ b/_examples/mvc/overview/models/README.md @@ -5,7 +5,7 @@ There should be the domain/business-level models. Example: ```go -import "github.com/kataras/iris/_examples/mvc/overview/datamodels" +import "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" type Movie struct { datamodels.Movie diff --git a/_examples/mvc/overview/repositories/movie_repository.go b/_examples/mvc/overview/repositories/movie_repository.go index 8b85ed09..56dc9dbd 100644 --- a/_examples/mvc/overview/repositories/movie_repository.go +++ b/_examples/mvc/overview/repositories/movie_repository.go @@ -6,7 +6,7 @@ import ( "errors" "sync" - "github.com/kataras/iris/_examples/mvc/overview/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" ) // Query represents the visitor and action queries. diff --git a/_examples/mvc/overview/services/movie_service.go b/_examples/mvc/overview/services/movie_service.go index a89d1410..d9973ce7 100644 --- a/_examples/mvc/overview/services/movie_service.go +++ b/_examples/mvc/overview/services/movie_service.go @@ -3,8 +3,8 @@ package services import ( - "github.com/kataras/iris/_examples/mvc/overview/datamodels" - "github.com/kataras/iris/_examples/mvc/overview/repositories" + "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/overview/repositories" ) // MovieService handles some of the CRUID operations of the movie datamodel. diff --git a/_examples/mvc/overview/web/controllers/hello_controller.go b/_examples/mvc/overview/web/controllers/hello_controller.go index 2e10dc74..21bbc99e 100644 --- a/_examples/mvc/overview/web/controllers/hello_controller.go +++ b/_examples/mvc/overview/web/controllers/hello_controller.go @@ -5,7 +5,7 @@ package controllers import ( "errors" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12/mvc" ) // HelloController is our sample controller diff --git a/_examples/mvc/overview/web/controllers/movie_controller.go b/_examples/mvc/overview/web/controllers/movie_controller.go index 0555bf43..157ef142 100644 --- a/_examples/mvc/overview/web/controllers/movie_controller.go +++ b/_examples/mvc/overview/web/controllers/movie_controller.go @@ -5,10 +5,10 @@ package controllers import ( "errors" - "github.com/kataras/iris/_examples/mvc/overview/datamodels" - "github.com/kataras/iris/_examples/mvc/overview/services" + "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/overview/services" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // MovieController is our /movies controller. diff --git a/_examples/mvc/overview/web/middleware/basicauth.go b/_examples/mvc/overview/web/middleware/basicauth.go index c9b6eacf..5d61fc72 100644 --- a/_examples/mvc/overview/web/middleware/basicauth.go +++ b/_examples/mvc/overview/web/middleware/basicauth.go @@ -2,7 +2,7 @@ package middleware -import "github.com/kataras/iris/middleware/basicauth" +import "github.com/kataras/iris/v12/middleware/basicauth" // BasicAuth middleware sample. var BasicAuth = basicauth.New(basicauth.Config{ diff --git a/_examples/mvc/overview/web/viewmodels/README.md b/_examples/mvc/overview/web/viewmodels/README.md index 0afe13e2..181123ea 100644 --- a/_examples/mvc/overview/web/viewmodels/README.md +++ b/_examples/mvc/overview/web/viewmodels/README.md @@ -6,10 +6,10 @@ Example: ```go import ( - "github.com/kataras/iris/_examples/mvc/overview/datamodels" + "github.com/kataras/iris/v12/_examples/mvc/overview/datamodels" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) type Movie struct { diff --git a/_examples/mvc/regexp/main.go b/_examples/mvc/regexp/main.go index 1c94866b..29fa0b18 100644 --- a/_examples/mvc/regexp/main.go +++ b/_examples/mvc/regexp/main.go @@ -12,8 +12,8 @@ Read the routing examples and you will gain a deeper view, there are all covered */ import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/session-controller/main.go b/_examples/mvc/session-controller/main.go index 272b0abf..c921716b 100644 --- a/_examples/mvc/session-controller/main.go +++ b/_examples/mvc/session-controller/main.go @@ -6,9 +6,9 @@ import ( "fmt" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" ) // VisitController handles the root route. diff --git a/_examples/mvc/session-controller/main_test.go b/_examples/mvc/session-controller/main_test.go index f8900501..e7ec5929 100644 --- a/_examples/mvc/session-controller/main_test.go +++ b/_examples/mvc/session-controller/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestMVCSession(t *testing.T) { diff --git a/_examples/mvc/singleton/main.go b/_examples/mvc/singleton/main.go index 2d087b58..aebfc89e 100644 --- a/_examples/mvc/singleton/main.go +++ b/_examples/mvc/singleton/main.go @@ -4,8 +4,8 @@ import ( "fmt" "sync/atomic" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/mvc/websocket/main.go b/_examples/mvc/websocket/main.go index 762644fa..e37b2b2f 100644 --- a/_examples/mvc/websocket/main.go +++ b/_examples/mvc/websocket/main.go @@ -4,9 +4,9 @@ import ( "fmt" "sync/atomic" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/websocket" ) func main() { diff --git a/_examples/orm/gorm/main.go b/_examples/orm/gorm/main.go index 3199b996..03d76b9c 100644 --- a/_examples/orm/gorm/main.go +++ b/_examples/orm/gorm/main.go @@ -6,7 +6,7 @@ import ( "time" "github.com/jinzhu/gorm" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" _ "github.com/mattn/go-sqlite3" ) diff --git a/_examples/orm/xorm/main.go b/_examples/orm/xorm/main.go index c8c3e08a..3106d1a1 100644 --- a/_examples/orm/xorm/main.go +++ b/_examples/orm/xorm/main.go @@ -5,7 +5,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/go-xorm/xorm" _ "github.com/mattn/go-sqlite3" diff --git a/_examples/overview/main.go b/_examples/overview/main.go index 36323d37..f5a9c7c5 100644 --- a/_examples/overview/main.go +++ b/_examples/overview/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // User is just a bindable object structure. diff --git a/_examples/routing/basic/main.go b/_examples/routing/basic/main.go index 8e5e2ab5..d86dac6c 100644 --- a/_examples/routing/basic/main.go +++ b/_examples/routing/basic/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func newApp() *iris.Application { diff --git a/_examples/routing/basic/main_test.go b/_examples/routing/basic/main_test.go index 6825fbea..960e2e98 100644 --- a/_examples/routing/basic/main_test.go +++ b/_examples/routing/basic/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) // Shows a very basic usage of the httptest. diff --git a/_examples/routing/conditional-chain/main.go b/_examples/routing/conditional-chain/main.go index ec2765f8..521b0923 100644 --- a/_examples/routing/conditional-chain/main.go +++ b/_examples/routing/conditional-chain/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/custom-context/method-overriding/main.go b/_examples/routing/custom-context/method-overriding/main.go index 55ff7fdb..dbbdd05d 100644 --- a/_examples/routing/custom-context/method-overriding/main.go +++ b/_examples/routing/custom-context/method-overriding/main.go @@ -8,8 +8,8 @@ package main import ( "reflect" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) // Create your own custom Context, put any fields you wanna need. diff --git a/_examples/routing/custom-context/new-implementation/main.go b/_examples/routing/custom-context/new-implementation/main.go index fd3ba49a..90e3c0e9 100644 --- a/_examples/routing/custom-context/new-implementation/main.go +++ b/_examples/routing/custom-context/new-implementation/main.go @@ -3,8 +3,8 @@ package main import ( "sync" - "github.com/kataras/iris" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/sessions" ) // Owner is our application structure, it contains the methods or fields we need, diff --git a/_examples/routing/custom-context/new-implementation/main_test.go b/_examples/routing/custom-context/new-implementation/main_test.go index 35d8bb2c..49c782d5 100644 --- a/_examples/routing/custom-context/new-implementation/main_test.go +++ b/_examples/routing/custom-context/new-implementation/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestCustomContextNewImpl(t *testing.T) { diff --git a/_examples/routing/custom-high-level-router/main.go b/_examples/routing/custom-high-level-router/main.go index abdd88d4..b69f5dc9 100644 --- a/_examples/routing/custom-high-level-router/main.go +++ b/_examples/routing/custom-high-level-router/main.go @@ -3,8 +3,8 @@ package main import ( "strings" - "github.com/kataras/iris" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/core/router" ) /* A Router should contain all three of the following methods: diff --git a/_examples/routing/custom-wrapper/main.go b/_examples/routing/custom-wrapper/main.go index 68ccf30c..1dbf3c95 100644 --- a/_examples/routing/custom-wrapper/main.go +++ b/_examples/routing/custom-wrapper/main.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // In this example you'll just see one use case of .WrapRouter. diff --git a/_examples/routing/custom-wrapper/main_test.go b/_examples/routing/custom-wrapper/main_test.go index 5e45a86d..540f0435 100644 --- a/_examples/routing/custom-wrapper/main_test.go +++ b/_examples/routing/custom-wrapper/main_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type resource string diff --git a/_examples/routing/dynamic-path/main.go b/_examples/routing/dynamic-path/main.go index a5f00618..420f3f26 100644 --- a/_examples/routing/dynamic-path/main.go +++ b/_examples/routing/dynamic-path/main.go @@ -3,7 +3,7 @@ package main import ( "regexp" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/dynamic-path/root-wildcard/main.go b/_examples/routing/dynamic-path/root-wildcard/main.go index bd1b462b..67dc7689 100644 --- a/_examples/routing/dynamic-path/root-wildcard/main.go +++ b/_examples/routing/dynamic-path/root-wildcard/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/http-errors/main.go b/_examples/routing/http-errors/main.go index bab27e67..fe564d3e 100644 --- a/_examples/routing/http-errors/main.go +++ b/_examples/routing/http-errors/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/macros/main.go b/_examples/routing/macros/main.go index 278ad055..40087d86 100644 --- a/_examples/routing/macros/main.go +++ b/_examples/routing/macros/main.go @@ -7,9 +7,9 @@ import ( "sort" "strings" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/hero" ) func main() { diff --git a/_examples/routing/main.go b/_examples/routing/main.go index ccd35c9e..459743c7 100644 --- a/_examples/routing/main.go +++ b/_examples/routing/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) /* diff --git a/_examples/routing/main_test.go b/_examples/routing/main_test.go index 4fd2c4a1..93db302d 100644 --- a/_examples/routing/main_test.go +++ b/_examples/routing/main_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func calculatePathAndResponse(method, subdomain, path string, paramKeyValue ...string) (string, string) { diff --git a/_examples/routing/overview/main.go b/_examples/routing/overview/main.go index 253daa98..62657aaa 100644 --- a/_examples/routing/overview/main.go +++ b/_examples/routing/overview/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/reverse/main.go b/_examples/routing/reverse/main.go index 23287534..80122d7b 100644 --- a/_examples/routing/reverse/main.go +++ b/_examples/routing/reverse/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/core/router" ) func main() { diff --git a/_examples/routing/route-state/main.go b/_examples/routing/route-state/main.go index 542af9ee..30b35cf3 100644 --- a/_examples/routing/route-state/main.go +++ b/_examples/routing/route-state/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/routing/writing-a-middleware/globally/main.go b/_examples/routing/writing-a-middleware/globally/main.go index b89ac7f1..891c4d9d 100644 --- a/_examples/routing/writing-a-middleware/globally/main.go +++ b/_examples/routing/writing-a-middleware/globally/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/routing/writing-a-middleware/per-route/main.go b/_examples/routing/writing-a-middleware/per-route/main.go index 38440561..f95c9ccf 100644 --- a/_examples/routing/writing-a-middleware/per-route/main.go +++ b/_examples/routing/writing-a-middleware/per-route/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/sessions/database/badger/main.go b/_examples/sessions/database/badger/main.go index 52212d15..8489c186 100644 --- a/_examples/sessions/database/badger/main.go +++ b/_examples/sessions/database/badger/main.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/sessions/sessiondb/badger" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/sessions/sessiondb/badger" ) func main() { diff --git a/_examples/sessions/database/boltdb/main.go b/_examples/sessions/database/boltdb/main.go index c2310c2e..d49c72dc 100644 --- a/_examples/sessions/database/boltdb/main.go +++ b/_examples/sessions/database/boltdb/main.go @@ -4,10 +4,10 @@ import ( "os" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/sessions/sessiondb/boltdb" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/sessions/sessiondb/boltdb" ) func main() { diff --git a/_examples/sessions/database/redis/main.go b/_examples/sessions/database/redis/main.go index 8a9e8ca2..82c9d8af 100644 --- a/_examples/sessions/database/redis/main.go +++ b/_examples/sessions/database/redis/main.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/sessions/sessiondb/redis" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/sessions/sessiondb/redis" ) // tested with redis version 3.0.503. diff --git a/_examples/sessions/flash-messages/main.go b/_examples/sessions/flash-messages/main.go index cfece6d6..45c14492 100644 --- a/_examples/sessions/flash-messages/main.go +++ b/_examples/sessions/flash-messages/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" ) func main() { diff --git a/_examples/sessions/middleware/main.go b/_examples/sessions/middleware/main.go index 88b070fe..5e20011f 100644 --- a/_examples/sessions/middleware/main.go +++ b/_examples/sessions/middleware/main.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/sessions" ) type businessModel struct { diff --git a/_examples/sessions/overview/main.go b/_examples/sessions/overview/main.go index 8d9b4f47..006dce03 100644 --- a/_examples/sessions/overview/main.go +++ b/_examples/sessions/overview/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" ) var ( diff --git a/_examples/sessions/securecookie/main.go b/_examples/sessions/securecookie/main.go index 61a4a814..006c0ac3 100644 --- a/_examples/sessions/securecookie/main.go +++ b/_examples/sessions/securecookie/main.go @@ -6,9 +6,9 @@ package main // $ go run main.go import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" "github.com/gorilla/securecookie" ) diff --git a/_examples/sessions/securecookie/main_test.go b/_examples/sessions/securecookie/main_test.go index a972680a..d419cd75 100644 --- a/_examples/sessions/securecookie/main_test.go +++ b/_examples/sessions/securecookie/main_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" ) func TestSessionsEncodeDecode(t *testing.T) { diff --git a/_examples/structuring/bootstrap/bootstrap/bootstrapper.go b/_examples/structuring/bootstrap/bootstrap/bootstrapper.go index 3674adeb..47bbf5e1 100644 --- a/_examples/structuring/bootstrap/bootstrap/bootstrapper.go +++ b/_examples/structuring/bootstrap/bootstrap/bootstrapper.go @@ -5,11 +5,11 @@ import ( "github.com/gorilla/securecookie" - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/logger" - "github.com/kataras/iris/middleware/recover" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/logger" + "github.com/kataras/iris/v12/middleware/recover" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/websocket" ) type Configurator func(*Bootstrapper) diff --git a/_examples/structuring/bootstrap/main.go b/_examples/structuring/bootstrap/main.go index 3d335caf..f5732b59 100644 --- a/_examples/structuring/bootstrap/main.go +++ b/_examples/structuring/bootstrap/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris/_examples/structuring/bootstrap/bootstrap" - "github.com/kataras/iris/_examples/structuring/bootstrap/middleware/identity" - "github.com/kataras/iris/_examples/structuring/bootstrap/routes" + "github.com/kataras/iris/v12/_examples/structuring/bootstrap/bootstrap" + "github.com/kataras/iris/v12/_examples/structuring/bootstrap/middleware/identity" + "github.com/kataras/iris/v12/_examples/structuring/bootstrap/routes" ) func newApp() *bootstrap.Bootstrapper { diff --git a/_examples/structuring/bootstrap/main_test.go b/_examples/structuring/bootstrap/main_test.go index 1fe5f562..ecfee26d 100644 --- a/_examples/structuring/bootstrap/main_test.go +++ b/_examples/structuring/bootstrap/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) // go test -v diff --git a/_examples/structuring/bootstrap/middleware/identity/identity.go b/_examples/structuring/bootstrap/middleware/identity/identity.go index a163eb53..feb6ebce 100644 --- a/_examples/structuring/bootstrap/middleware/identity/identity.go +++ b/_examples/structuring/bootstrap/middleware/identity/identity.go @@ -3,9 +3,9 @@ package identity import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/_examples/structuring/bootstrap/bootstrap" + "github.com/kataras/iris/v12/_examples/structuring/bootstrap/bootstrap" ) // New returns a new handler which adds some headers and view data diff --git a/_examples/structuring/bootstrap/routes/follower.go b/_examples/structuring/bootstrap/routes/follower.go index 3dd0f012..7c3113f6 100644 --- a/_examples/structuring/bootstrap/routes/follower.go +++ b/_examples/structuring/bootstrap/routes/follower.go @@ -1,7 +1,7 @@ package routes import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // GetFollowerHandler handles the GET: /follower/{id} diff --git a/_examples/structuring/bootstrap/routes/following.go b/_examples/structuring/bootstrap/routes/following.go index e81c9c24..affbbaf7 100644 --- a/_examples/structuring/bootstrap/routes/following.go +++ b/_examples/structuring/bootstrap/routes/following.go @@ -1,7 +1,7 @@ package routes import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // GetFollowingHandler handles the GET: /following/{id} diff --git a/_examples/structuring/bootstrap/routes/index.go b/_examples/structuring/bootstrap/routes/index.go index 18541ed0..4ce214d4 100644 --- a/_examples/structuring/bootstrap/routes/index.go +++ b/_examples/structuring/bootstrap/routes/index.go @@ -1,7 +1,7 @@ package routes import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // GetIndexHandler handles the GET: / diff --git a/_examples/structuring/bootstrap/routes/like.go b/_examples/structuring/bootstrap/routes/like.go index 631653c4..3e150938 100644 --- a/_examples/structuring/bootstrap/routes/like.go +++ b/_examples/structuring/bootstrap/routes/like.go @@ -1,7 +1,7 @@ package routes import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // GetLikeHandler handles the GET: /like/{id} diff --git a/_examples/structuring/bootstrap/routes/routes.go b/_examples/structuring/bootstrap/routes/routes.go index 714dba5b..1d630f3f 100644 --- a/_examples/structuring/bootstrap/routes/routes.go +++ b/_examples/structuring/bootstrap/routes/routes.go @@ -1,7 +1,7 @@ package routes import ( - "github.com/kataras/iris/_examples/structuring/bootstrap/bootstrap" + "github.com/kataras/iris/v12/_examples/structuring/bootstrap/bootstrap" ) // Configure registers the necessary routes to the app. diff --git a/_examples/structuring/login-mvc-single-responsibility-package/main.go b/_examples/structuring/login-mvc-single-responsibility-package/main.go index e6232904..692cfede 100644 --- a/_examples/structuring/login-mvc-single-responsibility-package/main.go +++ b/_examples/structuring/login-mvc-single-responsibility-package/main.go @@ -3,11 +3,11 @@ package main import ( "time" - "github.com/kataras/iris/_examples/structuring/login-mvc-single-responsibility-package/user" + "github.com/kataras/iris/v12/_examples/structuring/login-mvc-single-responsibility-package/user" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" ) func main() { diff --git a/_examples/structuring/login-mvc-single-responsibility-package/user/auth.go b/_examples/structuring/login-mvc-single-responsibility-package/user/auth.go index 0300f035..64ded5df 100644 --- a/_examples/structuring/login-mvc-single-responsibility-package/user/auth.go +++ b/_examples/structuring/login-mvc-single-responsibility-package/user/auth.go @@ -5,9 +5,9 @@ import ( "strconv" "strings" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" ) const sessionIDKey = "UserID" diff --git a/_examples/structuring/login-mvc-single-responsibility-package/user/controller.go b/_examples/structuring/login-mvc-single-responsibility-package/user/controller.go index 38330c7d..b9470774 100644 --- a/_examples/structuring/login-mvc-single-responsibility-package/user/controller.go +++ b/_examples/structuring/login-mvc-single-responsibility-package/user/controller.go @@ -1,8 +1,8 @@ package user import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) var ( diff --git a/_examples/subdomains/multi/main.go b/_examples/subdomains/multi/main.go index 7c0627d9..bc1199b6 100644 --- a/_examples/subdomains/multi/main.go +++ b/_examples/subdomains/multi/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/subdomains/redirect/main.go b/_examples/subdomains/redirect/main.go index 87ec7a66..e078366e 100644 --- a/_examples/subdomains/redirect/main.go +++ b/_examples/subdomains/redirect/main.go @@ -4,7 +4,7 @@ // Check the 'hosts' file to see how to test the 'mydomain.com' on your local machine. package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" const addr = "mydomain.com:80" diff --git a/_examples/subdomains/redirect/main_test.go b/_examples/subdomains/redirect/main_test.go index 5663da86..d790c878 100644 --- a/_examples/subdomains/redirect/main_test.go +++ b/_examples/subdomains/redirect/main_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) func TestSubdomainRedirectWWW(t *testing.T) { diff --git a/_examples/subdomains/single/main.go b/_examples/subdomains/single/main.go index 2c70510d..73358971 100644 --- a/_examples/subdomains/single/main.go +++ b/_examples/subdomains/single/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/subdomains/wildcard/main.go b/_examples/subdomains/wildcard/main.go index 2735ab5d..a8ee618e 100644 --- a/_examples/subdomains/wildcard/main.go +++ b/_examples/subdomains/wildcard/main.go @@ -4,7 +4,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) // register a dynamic-wildcard subdomain to your server machine(dns/...) first, check ./hosts if you use windows. diff --git a/_examples/subdomains/www/main.go b/_examples/subdomains/www/main.go index 9ecfc969..254a4e93 100644 --- a/_examples/subdomains/www/main.go +++ b/_examples/subdomains/www/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func newApp() *iris.Application { diff --git a/_examples/subdomains/www/main_test.go b/_examples/subdomains/www/main_test.go index f38b2105..10686065 100644 --- a/_examples/subdomains/www/main_test.go +++ b/_examples/subdomains/www/main_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) type testRoute struct { diff --git a/_examples/testing/httptest/main.go b/_examples/testing/httptest/main.go index 8aa1b020..c70f0ff6 100644 --- a/_examples/testing/httptest/main.go +++ b/_examples/testing/httptest/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/middleware/basicauth" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/middleware/basicauth" ) func newApp() *iris.Application { diff --git a/_examples/testing/httptest/main_test.go b/_examples/testing/httptest/main_test.go index 579ba701..fa528642 100644 --- a/_examples/testing/httptest/main_test.go +++ b/_examples/testing/httptest/main_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) // $ go test -v diff --git a/_examples/tutorial/api-for-apache-kafka/src/main.go b/_examples/tutorial/api-for-apache-kafka/src/main.go index 0db740d2..e371700c 100644 --- a/_examples/tutorial/api-for-apache-kafka/src/main.go +++ b/_examples/tutorial/api-for-apache-kafka/src/main.go @@ -7,7 +7,7 @@ import ( "time" "github.com/Shopify/sarama" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) /* diff --git a/_examples/tutorial/caddy/server1/main.go b/_examples/tutorial/caddy/server1/main.go index 3f674580..62900b43 100644 --- a/_examples/tutorial/caddy/server1/main.go +++ b/_examples/tutorial/caddy/server1/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/tutorial/caddy/server2/main.go b/_examples/tutorial/caddy/server2/main.go index 260df112..f338859f 100644 --- a/_examples/tutorial/caddy/server2/main.go +++ b/_examples/tutorial/caddy/server2/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" ) type postValue func(string) string diff --git a/_examples/tutorial/dropzonejs/README.md b/_examples/tutorial/dropzonejs/README.md index b3380888..c7db448f 100644 --- a/_examples/tutorial/dropzonejs/README.md +++ b/_examples/tutorial/dropzonejs/README.md @@ -89,7 +89,7 @@ import ( "io" "strings" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) const uploadsDir = "./public/uploads/" diff --git a/_examples/tutorial/dropzonejs/README_PART2.md b/_examples/tutorial/dropzonejs/README_PART2.md index 536ea41e..65e57392 100644 --- a/_examples/tutorial/dropzonejs/README_PART2.md +++ b/_examples/tutorial/dropzonejs/README_PART2.md @@ -54,7 +54,7 @@ import ( "strings" "sync" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/nfnt/resize" // $ go get -u github.com/nfnt/resize ) diff --git a/_examples/tutorial/dropzonejs/src/main.go b/_examples/tutorial/dropzonejs/src/main.go index 7d91282c..ad8b8825 100644 --- a/_examples/tutorial/dropzonejs/src/main.go +++ b/_examples/tutorial/dropzonejs/src/main.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/nfnt/resize" ) diff --git a/_examples/tutorial/mongodb/api/store/movie.go b/_examples/tutorial/mongodb/api/store/movie.go index 2004d06c..cbc281aa 100644 --- a/_examples/tutorial/mongodb/api/store/movie.go +++ b/_examples/tutorial/mongodb/api/store/movie.go @@ -1,10 +1,10 @@ package storeapi import ( - "github.com/kataras/iris/_examples/tutorial/mongodb/httputil" - "github.com/kataras/iris/_examples/tutorial/mongodb/store" + "github.com/kataras/iris/v12/_examples/tutorial/mongodb/httputil" + "github.com/kataras/iris/v12/_examples/tutorial/mongodb/store" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type MovieHandler struct { diff --git a/_examples/tutorial/mongodb/httputil/error.go b/_examples/tutorial/mongodb/httputil/error.go index 5bf7837b..4bcc740f 100644 --- a/_examples/tutorial/mongodb/httputil/error.go +++ b/_examples/tutorial/mongodb/httputil/error.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) var validStackFuncs = []func(string) bool{ diff --git a/_examples/tutorial/mongodb/main.go b/_examples/tutorial/mongodb/main.go index c008bba2..01e0065b 100644 --- a/_examples/tutorial/mongodb/main.go +++ b/_examples/tutorial/mongodb/main.go @@ -11,13 +11,13 @@ import ( "os" // APIs - storeapi "github.com/kataras/iris/_examples/tutorial/mongodb/api/store" + storeapi "github.com/kataras/iris/v12/_examples/tutorial/mongodb/api/store" // - "github.com/kataras/iris/_examples/tutorial/mongodb/env" - "github.com/kataras/iris/_examples/tutorial/mongodb/store" + "github.com/kataras/iris/v12/_examples/tutorial/mongodb/env" + "github.com/kataras/iris/v12/_examples/tutorial/mongodb/store" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/_examples/tutorial/online-visitors/main.go b/_examples/tutorial/online-visitors/main.go index c47ce0a8..8119e4f2 100644 --- a/_examples/tutorial/online-visitors/main.go +++ b/_examples/tutorial/online-visitors/main.go @@ -4,9 +4,9 @@ import ( "fmt" "sync/atomic" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12/websocket" ) var events = websocket.Namespaces{ diff --git a/_examples/tutorial/url-shortener/main.go b/_examples/tutorial/url-shortener/main.go index 6a8f2b89..2fe519c8 100644 --- a/_examples/tutorial/url-shortener/main.go +++ b/_examples/tutorial/url-shortener/main.go @@ -12,7 +12,7 @@ package main import ( "html/template" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/tutorial/url-shortener/main_test.go b/_examples/tutorial/url-shortener/main_test.go index a020894e..75270e0f 100644 --- a/_examples/tutorial/url-shortener/main_test.go +++ b/_examples/tutorial/url-shortener/main_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) // TestURLShortener tests the simple tasks of our url shortener application. diff --git a/_examples/tutorial/vuejs-todo-mvc/README.md b/_examples/tutorial/vuejs-todo-mvc/README.md index d46b7a80..2ba739e9 100644 --- a/_examples/tutorial/vuejs-todo-mvc/README.md +++ b/_examples/tutorial/vuejs-todo-mvc/README.md @@ -417,10 +417,10 @@ package controllers import ( "vuejs-todo-mvc/todo" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/websocket" ) // TodoController is our TODO app's web controller. @@ -485,11 +485,11 @@ import ( "vuejs-todo-mvc/todo" "vuejs-todo-mvc/web/controllers" - "github.com/kataras/iris" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/websocket" - "github.com/kataras/iris/mvc" + "github.com/kataras/iris/v12/mvc" ) func main() { diff --git a/_examples/tutorial/vuejs-todo-mvc/src/web/controllers/todo_controller.go b/_examples/tutorial/vuejs-todo-mvc/src/web/controllers/todo_controller.go index bf83019b..c1fb0fab 100644 --- a/_examples/tutorial/vuejs-todo-mvc/src/web/controllers/todo_controller.go +++ b/_examples/tutorial/vuejs-todo-mvc/src/web/controllers/todo_controller.go @@ -1,12 +1,12 @@ package controllers import ( - "github.com/kataras/iris/_examples/tutorial/vuejs-todo-mvc/src/todo" + "github.com/kataras/iris/v12/_examples/tutorial/vuejs-todo-mvc/src/todo" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/websocket" ) // TodoController is our TODO app's web controller. diff --git a/_examples/tutorial/vuejs-todo-mvc/src/web/main.go b/_examples/tutorial/vuejs-todo-mvc/src/web/main.go index e4ea0b3d..7507e860 100644 --- a/_examples/tutorial/vuejs-todo-mvc/src/web/main.go +++ b/_examples/tutorial/vuejs-todo-mvc/src/web/main.go @@ -3,13 +3,13 @@ package main import ( "strings" - "github.com/kataras/iris/_examples/tutorial/vuejs-todo-mvc/src/todo" - "github.com/kataras/iris/_examples/tutorial/vuejs-todo-mvc/src/web/controllers" + "github.com/kataras/iris/v12/_examples/tutorial/vuejs-todo-mvc/src/todo" + "github.com/kataras/iris/v12/_examples/tutorial/vuejs-todo-mvc/src/web/controllers" - "github.com/kataras/iris" - "github.com/kataras/iris/mvc" - "github.com/kataras/iris/sessions" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/mvc" + "github.com/kataras/iris/v12/sessions" + "github.com/kataras/iris/v12/websocket" ) func main() { diff --git a/_examples/versioning/main.go b/_examples/versioning/main.go index 8516b190..c046b882 100644 --- a/_examples/versioning/main.go +++ b/_examples/versioning/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/versioning" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/versioning" ) func main() { diff --git a/_examples/view/context-view-data/main.go b/_examples/view/context-view-data/main.go index 322ae804..80ab3a07 100644 --- a/_examples/view/context-view-data/main.go +++ b/_examples/view/context-view-data/main.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) const ( diff --git a/_examples/view/embedding-templates-into-app/main.go b/_examples/view/embedding-templates-into-app/main.go index 69372f95..7d3ee771 100644 --- a/_examples/view/embedding-templates-into-app/main.go +++ b/_examples/view/embedding-templates-into-app/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/overview/main.go b/_examples/view/overview/main.go index 5d6d5e26..2ef4f4ae 100644 --- a/_examples/view/overview/main.go +++ b/_examples/view/overview/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() @@ -26,8 +26,8 @@ func main() { /* Note: -In case you're wondering, the code behind the view engines derives from the "github.com/kataras/iris/view" package, -access to the engines' variables can be granded by "github.com/kataras/iris" package too. +In case you're wondering, the code behind the view engines derives from the "github.com/kataras/iris/v12/view" package, +access to the engines' variables can be granded by "github.com/kataras/iris/v12" package too. iris.HTML(...) is a shortcut of view.HTML(...) iris.Django(...) >> >> view.Django(...) diff --git a/_examples/view/template_django_0/main.go b/_examples/view/template_django_0/main.go index f1bc8957..cc3af499 100644 --- a/_examples/view/template_django_0/main.go +++ b/_examples/view/template_django_0/main.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" // optionally, registers filters like `timesince`. _ "github.com/flosch/pongo2-addons" diff --git a/_examples/view/template_html_0/main.go b/_examples/view/template_html_0/main.go index fe65469d..887be6b7 100644 --- a/_examples/view/template_html_0/main.go +++ b/_examples/view/template_html_0/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { @@ -37,8 +37,8 @@ func hi(ctx iris.Context) { /* Note: -In case you're wondering, the code behind the view engines derives from the "github.com/kataras/iris/view" package, -access to the engines' variables can be granded by "github.com/kataras/iris" package too. +In case you're wondering, the code behind the view engines derives from the "github.com/kataras/iris/v12/view" package, +access to the engines' variables can be granded by "github.com/kataras/iris/v12" package too. iris.HTML(...) is a shortcut of view.HTML(...) iris.Django(...) >> >> view.Django(...) diff --git a/_examples/view/template_html_1/main.go b/_examples/view/template_html_1/main.go index 81bf5b5f..bbca2cfc 100644 --- a/_examples/view/template_html_1/main.go +++ b/_examples/view/template_html_1/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type mypage struct { diff --git a/_examples/view/template_html_2/main.go b/_examples/view/template_html_2/main.go index 9418bd16..0bf81cf5 100644 --- a/_examples/view/template_html_2/main.go +++ b/_examples/view/template_html_2/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/template_html_3/main.go b/_examples/view/template_html_3/main.go index adf98358..22ee6864 100644 --- a/_examples/view/template_html_3/main.go +++ b/_examples/view/template_html_3/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/template_html_4/main.go b/_examples/view/template_html_4/main.go index 4484adf8..5d8a24be 100644 --- a/_examples/view/template_html_4/main.go +++ b/_examples/view/template_html_4/main.go @@ -2,8 +2,8 @@ package main import ( - "github.com/kataras/iris" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/core/router" ) const ( diff --git a/_examples/view/template_html_5/main.go b/_examples/view/template_html_5/main.go index 0a7a44ab..df1bf342 100644 --- a/_examples/view/template_html_5/main.go +++ b/_examples/view/template_html_5/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/template_jet_0/main.go b/_examples/view/template_jet_0/main.go index 8ed61f05..7cbaaab0 100644 --- a/_examples/view/template_jet_0/main.go +++ b/_examples/view/template_jet_0/main.go @@ -11,8 +11,8 @@ import ( "reflect" "strings" - "github.com/kataras/iris" - "github.com/kataras/iris/view" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/view" ) type tTODO struct { diff --git a/_examples/view/template_jet_1_embedded/main.go b/_examples/view/template_jet_1_embedded/main.go index 8ceb253a..2b981b9c 100644 --- a/_examples/view/template_jet_1_embedded/main.go +++ b/_examples/view/template_jet_1_embedded/main.go @@ -8,7 +8,7 @@ import ( "os" "strings" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/template_pug_0/main.go b/_examples/view/template_pug_0/main.go index 2f07bb5b..ea8f414f 100644 --- a/_examples/view/template_pug_0/main.go +++ b/_examples/view/template_pug_0/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/view/template_pug_1/main.go b/_examples/view/template_pug_1/main.go index 7c266507..3d376a49 100644 --- a/_examples/view/template_pug_1/main.go +++ b/_examples/view/template_pug_1/main.go @@ -1,7 +1,7 @@ // Package main shows an example of pug actions based on https://github.com/Joker/jade/tree/master/example/actions package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" type Person struct { Name string diff --git a/_examples/view/template_pug_2/main.go b/_examples/view/template_pug_2/main.go index 02e9571e..2c1b7efc 100644 --- a/_examples/view/template_pug_2/main.go +++ b/_examples/view/template_pug_2/main.go @@ -3,7 +3,7 @@ package main import ( "html/template" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) func main() { diff --git a/_examples/view/template_pug_3/main.go b/_examples/view/template_pug_3/main.go index ff82bbf4..ef376693 100644 --- a/_examples/view/template_pug_3/main.go +++ b/_examples/view/template_pug_3/main.go @@ -1,6 +1,6 @@ package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/_examples/view/write-to/main.go b/_examples/view/write-to/main.go index 2ed176fa..ac6ee9bd 100644 --- a/_examples/view/write-to/main.go +++ b/_examples/view/write-to/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) type mailData struct { diff --git a/_examples/webassembly/basic/main.go b/_examples/webassembly/basic/main.go index 9bf19515..e89d9d1d 100644 --- a/_examples/webassembly/basic/main.go +++ b/_examples/webassembly/basic/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" ) /* diff --git a/_examples/websocket/basic/go-client/client.go b/_examples/websocket/basic/go-client/client.go index 80a68ecf..05464887 100644 --- a/_examples/websocket/basic/go-client/client.go +++ b/_examples/websocket/basic/go-client/client.go @@ -9,7 +9,7 @@ import ( "os" "time" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12/websocket" ) const ( diff --git a/_examples/websocket/basic/server.go b/_examples/websocket/basic/server.go index a333ce0b..8a6b1299 100644 --- a/_examples/websocket/basic/server.go +++ b/_examples/websocket/basic/server.go @@ -3,8 +3,8 @@ package main import ( "log" - "github.com/kataras/iris" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/websocket" // Used when "enableJWT" constant is true: "github.com/iris-contrib/middleware/jwt" diff --git a/_examples/websocket/native-messages/main.go b/_examples/websocket/native-messages/main.go index 46a55dca..4f3b5353 100644 --- a/_examples/websocket/native-messages/main.go +++ b/_examples/websocket/native-messages/main.go @@ -3,8 +3,8 @@ package main import ( "log" - "github.com/kataras/iris" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/websocket" ) type clientPage struct { diff --git a/cache/browser.go b/cache/browser.go index 5cb1186b..5ed1230f 100644 --- a/cache/browser.go +++ b/cache/browser.go @@ -4,8 +4,8 @@ import ( "strconv" "time" - "github.com/kataras/iris/cache/client" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/cache/client" + "github.com/kataras/iris/v12/context" ) // CacheControlHeaderValue is the header value of the @@ -111,7 +111,7 @@ var ETag = func(ctx context.Context) { // Cache304 sends a `StatusNotModified` (304) whenever // the "If-Modified-Since" request header (time) is before the // time.Now() + expiresEvery (always compared to their UTC values). -// Use this `cache#Cache304` instead of the "github.com/kataras/iris/cache" or iris.Cache +// Use this `cache#Cache304` instead of the "github.com/kataras/iris/v12/cache" or iris.Cache // for better performance. // Clients that are compatible with the http RCF (all browsers are and tools like postman) // will handle the caching. diff --git a/cache/browser_test.go b/cache/browser_test.go index 30f8d954..8b8c2a05 100644 --- a/cache/browser_test.go +++ b/cache/browser_test.go @@ -5,11 +5,11 @@ import ( "testing" "time" - "github.com/kataras/iris/cache" + "github.com/kataras/iris/v12/cache" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" ) func TestNoCache(t *testing.T) { diff --git a/cache/cache.go b/cache/cache.go index 1ba55a68..18fde0d9 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -9,8 +9,8 @@ Example code: import ( "time" - "github.com/kataras/iris" - "github.com/kataras/iris/cache" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/cache" ) func main(){ @@ -30,8 +30,8 @@ package cache import ( "time" - "github.com/kataras/iris/cache/client" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/cache/client" + "github.com/kataras/iris/v12/context" ) // Cache accepts the cache expiration duration. diff --git a/cache/cache_test.go b/cache/cache_test.go index 166fecdd..3b8b5f96 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/kataras/iris/cache" - "github.com/kataras/iris/cache/client" - "github.com/kataras/iris/cache/client/rule" + "github.com/kataras/iris/v12/cache" + "github.com/kataras/iris/v12/cache/client" + "github.com/kataras/iris/v12/cache/client/rule" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" "github.com/gavv/httpexpect" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) var ( diff --git a/cache/client/client.go b/cache/client/client.go index d8e83522..044330eb 100644 --- a/cache/client/client.go +++ b/cache/client/client.go @@ -6,10 +6,10 @@ import ( "net/http" "time" - "github.com/kataras/iris/cache/cfg" - "github.com/kataras/iris/cache/client/rule" - "github.com/kataras/iris/cache/uri" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/cache/cfg" + "github.com/kataras/iris/v12/cache/client/rule" + "github.com/kataras/iris/v12/cache/uri" + "github.com/kataras/iris/v12/context" ) // ClientHandler is the client-side handler diff --git a/cache/client/handler.go b/cache/client/handler.go index e4a4163b..1d71772f 100644 --- a/cache/client/handler.go +++ b/cache/client/handler.go @@ -4,9 +4,9 @@ import ( "sync" "time" - "github.com/kataras/iris/cache/client/rule" - "github.com/kataras/iris/cache/entry" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/cache/client/rule" + "github.com/kataras/iris/v12/cache/entry" + "github.com/kataras/iris/v12/context" ) // Handler the local cache service handler contains diff --git a/cache/client/rule/chained.go b/cache/client/rule/chained.go index b448a652..a2765eaf 100644 --- a/cache/client/rule/chained.go +++ b/cache/client/rule/chained.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // chainedRule is a Rule with next Rule diff --git a/cache/client/rule/conditional.go b/cache/client/rule/conditional.go index e4adc630..28db257c 100644 --- a/cache/client/rule/conditional.go +++ b/cache/client/rule/conditional.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // Conditional is a Rule witch adds a predicate in order to its methods to execute diff --git a/cache/client/rule/header.go b/cache/client/rule/header.go index 33d65553..ab77dc0e 100644 --- a/cache/client/rule/header.go +++ b/cache/client/rule/header.go @@ -1,9 +1,9 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" - "github.com/kataras/iris/cache/ruleset" + "github.com/kataras/iris/v12/cache/ruleset" ) // The HeaderPredicate should be alived on each of $package/rule BUT GOLANG DOESN'T SUPPORT type alias and I don't want to have so many copies around diff --git a/cache/client/rule/not_satisfied.go b/cache/client/rule/not_satisfied.go index 4a6e9d58..3727ab6c 100644 --- a/cache/client/rule/not_satisfied.go +++ b/cache/client/rule/not_satisfied.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) type notSatisfiedRule struct{} diff --git a/cache/client/rule/rule.go b/cache/client/rule/rule.go index e2aa64ec..3758c4c4 100644 --- a/cache/client/rule/rule.go +++ b/cache/client/rule/rule.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // Rule a superset of validators diff --git a/cache/client/rule/satisfied.go b/cache/client/rule/satisfied.go index dec708b4..8e34eec6 100644 --- a/cache/client/rule/satisfied.go +++ b/cache/client/rule/satisfied.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) type satisfiedRule struct{} diff --git a/cache/client/rule/validator.go b/cache/client/rule/validator.go index 98008ee9..a4e84baf 100644 --- a/cache/client/rule/validator.go +++ b/cache/client/rule/validator.go @@ -1,7 +1,7 @@ package rule import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // Validators are introduced to implement the RFC about cache (https://tools.ietf.org/html/rfc7234#section-1.1). diff --git a/cache/client/ruleset.go b/cache/client/ruleset.go index fe747bbc..d9d8fccc 100644 --- a/cache/client/ruleset.go +++ b/cache/client/ruleset.go @@ -1,10 +1,10 @@ package client import ( - "github.com/kataras/iris/cache/cfg" - "github.com/kataras/iris/cache/client/rule" - "github.com/kataras/iris/cache/ruleset" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/cache/cfg" + "github.com/kataras/iris/v12/cache/client/rule" + "github.com/kataras/iris/v12/cache/ruleset" + "github.com/kataras/iris/v12/context" ) // DefaultRuleSet is a list of the default pre-cache validators diff --git a/cache/entry/entry.go b/cache/entry/entry.go index ed79ce64..f03b8342 100644 --- a/cache/entry/entry.go +++ b/cache/entry/entry.go @@ -3,7 +3,7 @@ package entry import ( "time" - "github.com/kataras/iris/cache/cfg" + "github.com/kataras/iris/v12/cache/cfg" ) // Entry is the cache entry diff --git a/cache/uri/uribuilder.go b/cache/uri/uribuilder.go index f14da064..3ee078c7 100644 --- a/cache/uri/uribuilder.go +++ b/cache/uri/uribuilder.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/kataras/iris/cache/cfg" + "github.com/kataras/iris/v12/cache/cfg" ) // URIBuilder is the requested url builder diff --git a/configuration.go b/configuration.go index 2c7c2fed..401bf0d5 100644 --- a/configuration.go +++ b/configuration.go @@ -16,7 +16,7 @@ import ( "github.com/BurntSushi/toml" "gopkg.in/yaml.v2" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) const globalConfigurationKeyword = "~" diff --git a/context/context.go b/context/context.go index cfc69e87..16a490de 100644 --- a/context/context.go +++ b/context/context.go @@ -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" diff --git a/context/handler.go b/context/handler.go index 7ae28914..d4d938bb 100644 --- a/context/handler.go +++ b/context/handler.go @@ -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 } } diff --git a/context/request_params.go b/context/request_params.go index 4e7cd468..f92e7fb9 100644 --- a/context/request_params.go +++ b/context/request_params.go @@ -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 diff --git a/context/route.go b/context/route.go index 7db074a9..04dea463 100644 --- a/context/route.go +++ b/context/route.go @@ -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 diff --git a/core/handlerconv/from_std.go b/core/handlerconv/from_std.go index 45427c68..7848daad 100644 --- a/core/handlerconv/from_std.go +++ b/core/handlerconv/from_std.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // FromStd converts native http.Handler & http.HandlerFunc to context.Handler. diff --git a/core/handlerconv/from_std_test.go b/core/handlerconv/from_std_test.go index 29afc2ee..9af30a93 100644 --- a/core/handlerconv/from_std_test.go +++ b/core/handlerconv/from_std_test.go @@ -6,10 +6,10 @@ import ( "net/http" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/handlerconv" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/handlerconv" + "github.com/kataras/iris/v12/httptest" ) func TestFromStd(t *testing.T) { diff --git a/core/host/proxy.go b/core/host/proxy.go index 11cbdda4..a6c79b6f 100644 --- a/core/host/proxy.go +++ b/core/host/proxy.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12/core/netutil" ) func singleJoiningSlash(a, b string) string { diff --git a/core/host/proxy_test.go b/core/host/proxy_test.go index 76561b34..0aa056f6 100644 --- a/core/host/proxy_test.go +++ b/core/host/proxy_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/host" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/host" + "github.com/kataras/iris/v12/httptest" ) func TestProxy(t *testing.T) { diff --git a/core/host/supervisor.go b/core/host/supervisor.go index bab3eb66..0dd62fd6 100644 --- a/core/host/supervisor.go +++ b/core/host/supervisor.go @@ -13,7 +13,7 @@ import ( "golang.org/x/crypto/acme/autocert" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12/core/netutil" ) // Configurator provides an easy way to modify diff --git a/core/host/task.go b/core/host/task.go index d00bcd51..55c958ee 100644 --- a/core/host/task.go +++ b/core/host/task.go @@ -12,7 +12,7 @@ import ( "runtime" "time" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12/core/netutil" ) // WriteStartupLogOnServe is a task which accepts a logger(io.Writer) diff --git a/core/router/api_builder.go b/core/router/api_builder.go index de220024..0e80f36e 100644 --- a/core/router/api_builder.go +++ b/core/router/api_builder.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/errgroup" - "github.com/kataras/iris/macro" - macroHandler "github.com/kataras/iris/macro/handler" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/errgroup" + "github.com/kataras/iris/v12/macro" + macroHandler "github.com/kataras/iris/v12/macro/handler" ) // MethodNone is a Virtual method diff --git a/core/router/api_builder_benchmark_test.go b/core/router/api_builder_benchmark_test.go index e16f798c..0b697147 100644 --- a/core/router/api_builder_benchmark_test.go +++ b/core/router/api_builder_benchmark_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // diff --git a/core/router/fs.go b/core/router/fs.go index 70565660..6e769bfc 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -14,7 +14,7 @@ import ( "strings" "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) const indexName = "/index.html" diff --git a/core/router/handler.go b/core/router/handler.go index 1199b669..c09504b4 100644 --- a/core/router/handler.go +++ b/core/router/handler.go @@ -5,10 +5,10 @@ import ( "sort" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/errgroup" - "github.com/kataras/iris/core/netutil" - macroHandler "github.com/kataras/iris/macro/handler" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/errgroup" + "github.com/kataras/iris/v12/core/netutil" + macroHandler "github.com/kataras/iris/v12/macro/handler" "github.com/kataras/golog" ) diff --git a/core/router/handler_execution_rules.go b/core/router/handler_execution_rules.go index a28f4c58..824f4748 100644 --- a/core/router/handler_execution_rules.go +++ b/core/router/handler_execution_rules.go @@ -1,7 +1,7 @@ package router import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // ExecutionRules gives control to the execution of the route handlers outside of the handlers themselves. diff --git a/core/router/handler_execution_rules_test.go b/core/router/handler_execution_rules_test.go index 6b6c6f56..035a989a 100644 --- a/core/router/handler_execution_rules_test.go +++ b/core/router/handler_execution_rules_test.go @@ -3,10 +3,10 @@ package router_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" + "github.com/kataras/iris/v12/httptest" ) var ( diff --git a/core/router/party.go b/core/router/party.go index e248b50e..5f6909e9 100644 --- a/core/router/party.go +++ b/core/router/party.go @@ -1,9 +1,9 @@ package router import ( - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/errgroup" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/errgroup" + "github.com/kataras/iris/v12/macro" ) // Party is just a group joiner of routes which have the same prefix and share same middleware(s) also. diff --git a/core/router/path.go b/core/router/path.go index c70afe84..6c32c863 100644 --- a/core/router/path.go +++ b/core/router/path.go @@ -6,10 +6,10 @@ import ( "strconv" "strings" - "github.com/kataras/iris/core/netutil" - "github.com/kataras/iris/macro" - "github.com/kataras/iris/macro/interpreter/ast" - "github.com/kataras/iris/macro/interpreter/lexer" + "github.com/kataras/iris/v12/core/netutil" + "github.com/kataras/iris/v12/macro" + "github.com/kataras/iris/v12/macro/interpreter/ast" + "github.com/kataras/iris/v12/macro/interpreter/lexer" ) // Param receives a parameter name prefixed with the ParamStart symbol. diff --git a/core/router/route.go b/core/router/route.go index b25f3b8b..8571824c 100644 --- a/core/router/route.go +++ b/core/router/route.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/macro" - "github.com/kataras/iris/macro/handler" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/macro" + "github.com/kataras/iris/v12/macro/handler" ) // Route contains the information about a registered Route. diff --git a/core/router/route_test.go b/core/router/route_test.go index 86a02cb3..f0b989ca 100644 --- a/core/router/route_test.go +++ b/core/router/route_test.go @@ -5,7 +5,7 @@ package router import ( "testing" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/macro" ) func TestRouteStaticPath(t *testing.T) { diff --git a/core/router/router.go b/core/router/router.go index fb52587e..8497ffd8 100644 --- a/core/router/router.go +++ b/core/router/router.go @@ -5,7 +5,7 @@ import ( "net/http" "sync" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // Router is the "director". diff --git a/core/router/router_handlers_order_test.go b/core/router/router_handlers_order_test.go index e4942ec3..d367bd1d 100644 --- a/core/router/router_handlers_order_test.go +++ b/core/router/router_handlers_order_test.go @@ -9,10 +9,10 @@ package router_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) // test registering of below handlers diff --git a/core/router/router_subdomain_redirect_wrapper.go b/core/router/router_subdomain_redirect_wrapper.go index beb438f6..edaf3df2 100644 --- a/core/router/router_subdomain_redirect_wrapper.go +++ b/core/router/router_subdomain_redirect_wrapper.go @@ -4,8 +4,8 @@ import ( "net/http" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/netutil" ) type subdomainRedirectWrapper struct { diff --git a/core/router/router_test.go b/core/router/router_test.go index ba41a714..7ba66bb3 100644 --- a/core/router/router_test.go +++ b/core/router/router_test.go @@ -3,9 +3,9 @@ package router_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" ) func TestRouteExists(t *testing.T) { diff --git a/core/router/router_wildcard_root_test.go b/core/router/router_wildcard_root_test.go index 37570f17..0d5f68ca 100644 --- a/core/router/router_wildcard_root_test.go +++ b/core/router/router_wildcard_root_test.go @@ -9,9 +9,9 @@ import ( "net/http" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" ) const ( diff --git a/core/router/status.go b/core/router/status.go index 460284a7..bb4464ee 100644 --- a/core/router/status.go +++ b/core/router/status.go @@ -4,7 +4,7 @@ import ( "net/http" // just for status codes "sync" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) func statusCodeSuccessful(statusCode int) bool { diff --git a/core/router/status_test.go b/core/router/status_test.go index 05ed04e5..e55a0cde 100644 --- a/core/router/status_test.go +++ b/core/router/status_test.go @@ -6,10 +6,10 @@ import ( "net/http" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12/httptest" ) var defaultErrHandler = func(ctx context.Context) { diff --git a/core/router/trie.go b/core/router/trie.go index b323ac06..85c0ebea 100644 --- a/core/router/trie.go +++ b/core/router/trie.go @@ -3,7 +3,7 @@ package router import ( "strings" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) const ( diff --git a/doc.go b/doc.go index 3d4e7985..e5ff18f3 100644 --- a/doc.go +++ b/doc.go @@ -38,7 +38,7 @@ Source code and other details for the project are available at GitHub: Current Version -11.2.8 +12.0.0 Installation diff --git a/go.mod b/go.mod index 7b407800..da2f0002 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/kataras/iris +module github.com/kataras/iris/v12 -go 1.12 +go 1.13 require ( github.com/kataras/neffos v0.0.10 diff --git a/go19.go b/go19.go index ed5cd3b7..e46e9bb5 100644 --- a/go19.go +++ b/go19.go @@ -3,9 +3,9 @@ package iris import ( - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/host" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/host" + "github.com/kataras/iris/v12/core/router" ) type ( diff --git a/hero/di.go b/hero/di.go index d997e114..80c3d3d3 100644 --- a/hero/di.go +++ b/hero/di.go @@ -3,7 +3,7 @@ package hero import ( "reflect" - "github.com/kataras/iris/hero/di" + "github.com/kataras/iris/v12/hero/di" ) func init() { diff --git a/hero/func_result.go b/hero/func_result.go index 314f745e..031a3a5c 100644 --- a/hero/func_result.go +++ b/hero/func_result.go @@ -4,8 +4,8 @@ import ( "reflect" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/hero/di" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/hero/di" "github.com/fatih/structs" ) diff --git a/hero/func_result_test.go b/hero/func_result_test.go index 6282dbd9..ecd2d707 100644 --- a/hero/func_result_test.go +++ b/hero/func_result_test.go @@ -4,11 +4,11 @@ import ( "errors" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" - . "github.com/kataras/iris/hero" + . "github.com/kataras/iris/v12/hero" ) func GetText() string { diff --git a/hero/handler.go b/hero/handler.go index e2c43ccf..3dd585d4 100644 --- a/hero/handler.go +++ b/hero/handler.go @@ -5,8 +5,8 @@ import ( "reflect" "runtime" - "github.com/kataras/iris/context" - "github.com/kataras/iris/hero/di" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/hero/di" "github.com/kataras/golog" ) diff --git a/hero/handler_test.go b/hero/handler_test.go index 9766b377..91a5385a 100644 --- a/hero/handler_test.go +++ b/hero/handler_test.go @@ -6,10 +6,10 @@ import ( "fmt" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" - . "github.com/kataras/iris/hero" + . "github.com/kataras/iris/v12/hero" ) // dynamic func diff --git a/hero/hero.go b/hero/hero.go index dfd6e873..369a37af 100644 --- a/hero/hero.go +++ b/hero/hero.go @@ -1,10 +1,10 @@ package hero import ( - "github.com/kataras/iris/hero/di" + "github.com/kataras/iris/v12/hero/di" "github.com/kataras/golog" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // def is the default hero value which can be used for dependencies share. diff --git a/hero/param.go b/hero/param.go index 6941d554..4c68fd34 100644 --- a/hero/param.go +++ b/hero/param.go @@ -3,7 +3,7 @@ package hero import ( "reflect" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // weak because we don't have access to the path, neither diff --git a/hero/param_test.go b/hero/param_test.go index ba03a6d3..844a94e2 100644 --- a/hero/param_test.go +++ b/hero/param_test.go @@ -3,7 +3,7 @@ package hero import ( "testing" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) func TestPathParams(t *testing.T) { diff --git a/httptest/httptest.go b/httptest/httptest.go index a34a2469..a6685698 100644 --- a/httptest/httptest.go +++ b/httptest/httptest.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - "github.com/kataras/iris" + "github.com/kataras/iris/v12" "github.com/gavv/httpexpect" ) diff --git a/iris.go b/iris.go index 55fa2851..f5bdf68b 100644 --- a/iris.go +++ b/iris.go @@ -17,27 +17,27 @@ import ( "github.com/kataras/golog" // context for the handlers - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" // core packages, required to build the application - "github.com/kataras/iris/core/errgroup" - "github.com/kataras/iris/core/host" - "github.com/kataras/iris/core/netutil" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12/core/errgroup" + "github.com/kataras/iris/v12/core/host" + "github.com/kataras/iris/v12/core/netutil" + "github.com/kataras/iris/v12/core/router" // handlerconv conversions - "github.com/kataras/iris/core/handlerconv" + "github.com/kataras/iris/v12/core/handlerconv" // cache conversions - "github.com/kataras/iris/cache" + "github.com/kataras/iris/v12/cache" // view - "github.com/kataras/iris/view" + "github.com/kataras/iris/v12/view" // middleware used in Default method - requestLogger "github.com/kataras/iris/middleware/logger" - "github.com/kataras/iris/middleware/recover" + requestLogger "github.com/kataras/iris/v12/middleware/logger" + "github.com/kataras/iris/v12/middleware/recover" ) // Version is the current version number of the Iris Web Framework. -const Version = "11.2.8" +const Version = "12.0.0" // HTTP status codes as registered with IANA. // See: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. @@ -434,7 +434,7 @@ var ( // Cache304 sends a `StatusNotModified` (304) whenever // the "If-Modified-Since" request header (time) is before the // time.Now() + expiresEvery (always compared to their UTC values). - // Use this, which is a shortcut of the, `chache#Cache304` instead of the "github.com/kataras/iris/cache" or iris.Cache + // Use this, which is a shortcut of the, `chache#Cache304` instead of the "github.com/kataras/iris/v12/cache" or iris.Cache // for better performance. // Clients that are compatible with the http RCF (all browsers are and tools like postman) // will handle the caching. @@ -809,7 +809,7 @@ func Raw(f func() error) Runner { // If error occured while building the Application, the returns type of error will be an *errgroup.Group // which let the callers to inspect the errors and cause, usage: // -// import "github.com/kataras/iris/core/errgroup" +// import "github.com/kataras/iris/v12/core/errgroup" // // errgroup.Walk(app.Build(), func(typ interface{}, err error) { // app.Logger().Errorf("%s: %s", typ, err) diff --git a/macro/handler/handler.go b/macro/handler/handler.go index 1cf74450..70375eb8 100644 --- a/macro/handler/handler.go +++ b/macro/handler/handler.go @@ -3,8 +3,8 @@ package handler import ( - "github.com/kataras/iris/context" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/macro" ) // CanMakeHandler reports whether a macro template needs a special macro's evaluator handler to be validated diff --git a/macro/handler/handler_test.go b/macro/handler/handler_test.go index 0acc1e83..f2fed965 100644 --- a/macro/handler/handler_test.go +++ b/macro/handler/handler_test.go @@ -3,7 +3,7 @@ package handler import ( "testing" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/macro" ) func TestCanMakeHandler(t *testing.T) { diff --git a/macro/interpreter/lexer/lexer.go b/macro/interpreter/lexer/lexer.go index 9c553e59..a2f84c31 100644 --- a/macro/interpreter/lexer/lexer.go +++ b/macro/interpreter/lexer/lexer.go @@ -1,7 +1,7 @@ package lexer import ( - "github.com/kataras/iris/macro/interpreter/token" + "github.com/kataras/iris/v12/macro/interpreter/token" ) // Lexer helps us to read/scan characters of a source and resolve their token types. diff --git a/macro/interpreter/lexer/lexer_test.go b/macro/interpreter/lexer/lexer_test.go index 848731e0..6a6b8605 100644 --- a/macro/interpreter/lexer/lexer_test.go +++ b/macro/interpreter/lexer/lexer_test.go @@ -3,7 +3,7 @@ package lexer import ( "testing" - "github.com/kataras/iris/macro/interpreter/token" + "github.com/kataras/iris/v12/macro/interpreter/token" ) func TestNextToken(t *testing.T) { diff --git a/macro/interpreter/parser/parser.go b/macro/interpreter/parser/parser.go index d4dcb0ec..7469abce 100644 --- a/macro/interpreter/parser/parser.go +++ b/macro/interpreter/parser/parser.go @@ -5,9 +5,9 @@ import ( "strconv" "strings" - "github.com/kataras/iris/macro/interpreter/ast" - "github.com/kataras/iris/macro/interpreter/lexer" - "github.com/kataras/iris/macro/interpreter/token" + "github.com/kataras/iris/v12/macro/interpreter/ast" + "github.com/kataras/iris/v12/macro/interpreter/lexer" + "github.com/kataras/iris/v12/macro/interpreter/token" ) // Parse takes a route "fullpath" diff --git a/macro/interpreter/parser/parser_test.go b/macro/interpreter/parser/parser_test.go index 9550c66f..cfc152f8 100644 --- a/macro/interpreter/parser/parser_test.go +++ b/macro/interpreter/parser/parser_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/kataras/iris/macro/interpreter/ast" + "github.com/kataras/iris/v12/macro/interpreter/ast" ) type simpleParamType string diff --git a/macro/macros.go b/macro/macros.go index 99637182..f88aca06 100644 --- a/macro/macros.go +++ b/macro/macros.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/kataras/iris/macro/interpreter/ast" + "github.com/kataras/iris/v12/macro/interpreter/ast" ) var ( diff --git a/macro/template.go b/macro/template.go index fcdb0b09..d388bfb7 100644 --- a/macro/template.go +++ b/macro/template.go @@ -3,9 +3,9 @@ package macro import ( "reflect" - "github.com/kataras/iris/core/memstore" - "github.com/kataras/iris/macro/interpreter/ast" - "github.com/kataras/iris/macro/interpreter/parser" + "github.com/kataras/iris/v12/core/memstore" + "github.com/kataras/iris/v12/macro/interpreter/ast" + "github.com/kataras/iris/v12/macro/interpreter/parser" ) // Template contains a route's path full parsed template. diff --git a/middleware/basicauth/basicauth.go b/middleware/basicauth/basicauth.go index ab5a1a07..2deda1bb 100644 --- a/middleware/basicauth/basicauth.go +++ b/middleware/basicauth/basicauth.go @@ -8,8 +8,8 @@ import ( "strconv" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" ) type ( diff --git a/middleware/basicauth/config.go b/middleware/basicauth/config.go index 5ecd430d..ef1e5eca 100644 --- a/middleware/basicauth/config.go +++ b/middleware/basicauth/config.go @@ -3,7 +3,7 @@ package basicauth import ( "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) const ( diff --git a/middleware/i18n/i18n.go b/middleware/i18n/i18n.go index 93b9495e..5a504997 100644 --- a/middleware/i18n/i18n.go +++ b/middleware/i18n/i18n.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/iris-contrib/i18n" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // test file: ../../_examples/miscellaneous/i18n/main_test.go diff --git a/middleware/logger/config.go b/middleware/logger/config.go index bf72e801..7c928c8d 100644 --- a/middleware/logger/config.go +++ b/middleware/logger/config.go @@ -3,7 +3,7 @@ package logger import ( "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // The SkipperFunc signature, used to serve the main request without logs. diff --git a/middleware/logger/logger.go b/middleware/logger/logger.go index 91766c55..e7395856 100644 --- a/middleware/logger/logger.go +++ b/middleware/logger/logger.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" "github.com/ryanuber/columnize" ) diff --git a/middleware/methodoverride/methodoverride.go b/middleware/methodoverride/methodoverride.go index 6a891417..d6c2fbce 100644 --- a/middleware/methodoverride/methodoverride.go +++ b/middleware/methodoverride/methodoverride.go @@ -5,8 +5,8 @@ import ( "net/http" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" ) type options struct { diff --git a/middleware/methodoverride/methodoverride_test.go b/middleware/methodoverride/methodoverride_test.go index 7bf9705c..3acbcd89 100644 --- a/middleware/methodoverride/methodoverride_test.go +++ b/middleware/methodoverride/methodoverride_test.go @@ -3,9 +3,9 @@ package methodoverride_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" - "github.com/kataras/iris/middleware/methodoverride" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" + "github.com/kataras/iris/v12/middleware/methodoverride" ) func TestMethodOverrideWrapper(t *testing.T) { diff --git a/middleware/pprof/pprof.go b/middleware/pprof/pprof.go index 65f92c73..82810a98 100644 --- a/middleware/pprof/pprof.go +++ b/middleware/pprof/pprof.go @@ -7,8 +7,8 @@ import ( rpprof "runtime/pprof" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/handlerconv" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/handlerconv" ) // New returns a new pprof (profile, cmdline, symbol, goroutine, heap, threadcreate, debug/block) Middleware. diff --git a/middleware/recaptcha/recaptcha.go b/middleware/recaptcha/recaptcha.go index 0c39ff25..78a9ea93 100644 --- a/middleware/recaptcha/recaptcha.go +++ b/middleware/recaptcha/recaptcha.go @@ -7,8 +7,8 @@ import ( "net/url" "time" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/netutil" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/netutil" ) const ( diff --git a/middleware/recover/recover.go b/middleware/recover/recover.go index b0974d11..21fabb77 100644 --- a/middleware/recover/recover.go +++ b/middleware/recover/recover.go @@ -6,7 +6,7 @@ import ( "runtime" "strconv" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) func getRequestLogs(ctx context.Context) string { diff --git a/mvc/controller.go b/mvc/controller.go index 89a4a15a..19482b0b 100644 --- a/mvc/controller.go +++ b/mvc/controller.go @@ -5,11 +5,11 @@ import ( "reflect" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" - "github.com/kataras/iris/hero" - "github.com/kataras/iris/hero/di" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" + "github.com/kataras/iris/v12/hero" + "github.com/kataras/iris/v12/hero/di" + "github.com/kataras/iris/v12/macro" "github.com/kataras/golog" ) diff --git a/mvc/controller_handle_test.go b/mvc/controller_handle_test.go index 28a9b307..2f90213c 100644 --- a/mvc/controller_handle_test.go +++ b/mvc/controller_handle_test.go @@ -3,11 +3,11 @@ package mvc_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" - . "github.com/kataras/iris/mvc" + . "github.com/kataras/iris/v12/mvc" ) // service diff --git a/mvc/controller_method_parser.go b/mvc/controller_method_parser.go index aef3062f..8f39531c 100644 --- a/mvc/controller_method_parser.go +++ b/mvc/controller_method_parser.go @@ -8,8 +8,8 @@ import ( "strings" "unicode" - "github.com/kataras/iris/core/router" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/core/router" + "github.com/kataras/iris/v12/macro" ) const ( diff --git a/mvc/controller_method_result_test.go b/mvc/controller_method_result_test.go index 845c9314..d3583afe 100644 --- a/mvc/controller_method_result_test.go +++ b/mvc/controller_method_result_test.go @@ -4,11 +4,11 @@ import ( "errors" "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" - . "github.com/kataras/iris/mvc" + . "github.com/kataras/iris/v12/mvc" ) type testControllerMethodResult struct { diff --git a/mvc/controller_test.go b/mvc/controller_test.go index db9acfa8..2de4510d 100644 --- a/mvc/controller_test.go +++ b/mvc/controller_test.go @@ -4,12 +4,12 @@ package mvc_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" - "github.com/kataras/iris/httptest" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" + "github.com/kataras/iris/v12/httptest" - . "github.com/kataras/iris/mvc" + . "github.com/kataras/iris/v12/mvc" ) type testController struct { diff --git a/mvc/go19.go b/mvc/go19.go index 0ab7cf2c..1d14a949 100644 --- a/mvc/go19.go +++ b/mvc/go19.go @@ -2,7 +2,7 @@ package mvc -import "github.com/kataras/iris/hero" +import "github.com/kataras/iris/v12/hero" type ( diff --git a/mvc/mvc.go b/mvc/mvc.go index 4ceb7d89..2051db6c 100644 --- a/mvc/mvc.go +++ b/mvc/mvc.go @@ -4,11 +4,11 @@ import ( "reflect" "strings" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" - "github.com/kataras/iris/hero" - "github.com/kataras/iris/hero/di" - "github.com/kataras/iris/websocket" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" + "github.com/kataras/iris/v12/hero" + "github.com/kataras/iris/v12/hero/di" + "github.com/kataras/iris/v12/websocket" "github.com/kataras/golog" ) diff --git a/mvc/param.go b/mvc/param.go index 269dea9a..38d7ebf0 100644 --- a/mvc/param.go +++ b/mvc/param.go @@ -3,8 +3,8 @@ package mvc import ( "reflect" - "github.com/kataras/iris/context" - "github.com/kataras/iris/macro" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/macro" ) func getPathParamsForInput(startParamIndex int, params []macro.TemplateParam, funcIn ...reflect.Type) (values []reflect.Value) { diff --git a/mvc/reflect.go b/mvc/reflect.go index 37ed174f..c2d00677 100644 --- a/mvc/reflect.go +++ b/mvc/reflect.go @@ -3,7 +3,7 @@ package mvc import ( "reflect" - "github.com/kataras/iris/hero" + "github.com/kataras/iris/v12/hero" ) var ( diff --git a/sessions/config.go b/sessions/config.go index b47579ff..1e33d5b1 100644 --- a/sessions/config.go +++ b/sessions/config.go @@ -3,7 +3,7 @@ package sessions import ( "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" uuid "github.com/iris-contrib/go.uuid" ) diff --git a/sessions/cookie.go b/sessions/cookie.go index 23d47534..642d4d74 100644 --- a/sessions/cookie.go +++ b/sessions/cookie.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) var ( diff --git a/sessions/database.go b/sessions/database.go index c444b828..a32f0fbd 100644 --- a/sessions/database.go +++ b/sessions/database.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/kataras/iris/core/memstore" + "github.com/kataras/iris/v12/core/memstore" ) // ErrNotImplemented is returned when a particular feature is not yet implemented yet. diff --git a/sessions/session.go b/sessions/session.go index 67bb5e9b..9c3b417f 100644 --- a/sessions/session.go +++ b/sessions/session.go @@ -5,7 +5,7 @@ import ( "strconv" "sync" - "github.com/kataras/iris/core/memstore" + "github.com/kataras/iris/v12/core/memstore" ) type ( diff --git a/sessions/sessiondb/badger/database.go b/sessions/sessiondb/badger/database.go index 6149bfe9..d6fb66f5 100644 --- a/sessions/sessiondb/badger/database.go +++ b/sessions/sessiondb/badger/database.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" "github.com/dgraph-io/badger" "github.com/kataras/golog" diff --git a/sessions/sessiondb/boltdb/database.go b/sessions/sessiondb/boltdb/database.go index 7756ec0d..567338f5 100644 --- a/sessions/sessiondb/boltdb/database.go +++ b/sessions/sessiondb/boltdb/database.go @@ -7,7 +7,7 @@ import ( "runtime" "time" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" bolt "github.com/etcd-io/bbolt" "github.com/kataras/golog" diff --git a/sessions/sessiondb/redis/database.go b/sessions/sessiondb/redis/database.go index f38d258c..4fb46e2d 100644 --- a/sessions/sessiondb/redis/database.go +++ b/sessions/sessiondb/redis/database.go @@ -4,7 +4,7 @@ import ( "errors" "time" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12/sessions" "github.com/kataras/golog" ) diff --git a/sessions/sessions.go b/sessions/sessions.go index 6cb81821..d8f3fd57 100644 --- a/sessions/sessions.go +++ b/sessions/sessions.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // A Sessions manager should be responsible to Start a sesion, based diff --git a/sessions/sessions_test.go b/sessions/sessions_test.go index 5041a809..dc4c7116 100644 --- a/sessions/sessions_test.go +++ b/sessions/sessions_test.go @@ -3,10 +3,10 @@ package sessions_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/context" - "github.com/kataras/iris/httptest" - "github.com/kataras/iris/sessions" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/httptest" + "github.com/kataras/iris/v12/sessions" ) func TestSessions(t *testing.T) { diff --git a/typescript/_examples/editor/main.go b/typescript/_examples/editor/main.go index f7c8023a..e8f3768f 100644 --- a/typescript/_examples/editor/main.go +++ b/typescript/_examples/editor/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/typescript/editor" + "github.com/kataras/iris/v12/typescript/editor" ) func main() { diff --git a/typescript/_examples/typescript/main.go b/typescript/_examples/typescript/main.go index 27bf000c..b6125b0c 100644 --- a/typescript/_examples/typescript/main.go +++ b/typescript/_examples/typescript/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/kataras/iris" + "github.com/kataras/iris/v12" - "github.com/kataras/iris/typescript" + "github.com/kataras/iris/v12/typescript" ) // NOTE: Some machines don't allow to install typescript automatically, so if you don't have typescript installed diff --git a/typescript/config.go b/typescript/config.go index ba9c359f..092f6001 100644 --- a/typescript/config.go +++ b/typescript/config.go @@ -7,7 +7,7 @@ import ( "reflect" "strconv" - "github.com/kataras/iris/typescript/npm" + "github.com/kataras/iris/v12/typescript/npm" ) var ( diff --git a/typescript/editor/editor.go b/typescript/editor/editor.go index 090bf493..3e295769 100644 --- a/typescript/editor/editor.go +++ b/typescript/editor/editor.go @@ -5,7 +5,7 @@ package editor Usage: - import "github.com/kataras/iris/typescript/editor" + import "github.com/kataras/iris/v12/typescript/editor" [...] app := iris.New() @@ -31,7 +31,7 @@ import ( "path/filepath" "strconv" - "github.com/kataras/iris/typescript/npm" + "github.com/kataras/iris/v12/typescript/npm" ) type ( diff --git a/typescript/typescript.go b/typescript/typescript.go index 705d9926..8c1a0d70 100644 --- a/typescript/typescript.go +++ b/typescript/typescript.go @@ -11,7 +11,7 @@ import ( "path/filepath" "strings" - "github.com/kataras/iris/typescript/npm" + "github.com/kataras/iris/v12/typescript/npm" ) type ( diff --git a/versioning/deprecation.go b/versioning/deprecation.go index 2b6066f5..12c25fbc 100644 --- a/versioning/deprecation.go +++ b/versioning/deprecation.go @@ -3,7 +3,7 @@ package versioning import ( "time" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) // DeprecationOptions describes the deprecation headers key-values. diff --git a/versioning/deprecation_test.go b/versioning/deprecation_test.go index 4cdcf83e..3dfd77b5 100644 --- a/versioning/deprecation_test.go +++ b/versioning/deprecation_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" - "github.com/kataras/iris/versioning" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" + "github.com/kataras/iris/v12/versioning" ) func TestDeprecated(t *testing.T) { diff --git a/versioning/group.go b/versioning/group.go index 3ee4ef4c..09d13010 100644 --- a/versioning/group.go +++ b/versioning/group.go @@ -3,8 +3,8 @@ package versioning import ( "net/http" - "github.com/kataras/iris/context" - "github.com/kataras/iris/core/router" + "github.com/kataras/iris/v12/context" + "github.com/kataras/iris/v12/core/router" ) type ( diff --git a/versioning/version.go b/versioning/version.go index 75d814ba..6ca83ad4 100644 --- a/versioning/version.go +++ b/versioning/version.go @@ -3,7 +3,7 @@ package versioning import ( "strings" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" ) const ( diff --git a/versioning/version_test.go b/versioning/version_test.go index 059fb310..20389e7c 100644 --- a/versioning/version_test.go +++ b/versioning/version_test.go @@ -3,9 +3,9 @@ package versioning_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" - "github.com/kataras/iris/versioning" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" + "github.com/kataras/iris/v12/versioning" ) func TestGetVersion(t *testing.T) { diff --git a/versioning/versioning.go b/versioning/versioning.go index ca280d1e..fd90381f 100644 --- a/versioning/versioning.go +++ b/versioning/versioning.go @@ -1,7 +1,7 @@ package versioning import ( - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" "github.com/hashicorp/go-version" ) diff --git a/versioning/versioning_test.go b/versioning/versioning_test.go index 1554b957..2281f196 100644 --- a/versioning/versioning_test.go +++ b/versioning/versioning_test.go @@ -3,9 +3,9 @@ package versioning_test import ( "testing" - "github.com/kataras/iris" - "github.com/kataras/iris/httptest" - "github.com/kataras/iris/versioning" + "github.com/kataras/iris/v12" + "github.com/kataras/iris/v12/httptest" + "github.com/kataras/iris/v12/versioning" ) func notFoundHandler(ctx iris.Context) { diff --git a/view/README.md b/view/README.md index 5c9dd715..1b96bdea 100644 --- a/view/README.md +++ b/view/README.md @@ -38,7 +38,7 @@ You can serve [quicktemplate](https://github.com/valyala/quicktemplate) files to // file: main.go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() @@ -85,7 +85,7 @@ func main() { ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() @@ -135,7 +135,7 @@ Example code: ```go package main -import "github.com/kataras/iris" +import "github.com/kataras/iris/v12" func main() { app := iris.New() diff --git a/view/django.go b/view/django.go index 776dda64..686cebf4 100644 --- a/view/django.go +++ b/view/django.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" "github.com/flosch/pongo2" ) diff --git a/view/jet.go b/view/jet.go index c98dac2f..f72b46b6 100644 --- a/view/jet.go +++ b/view/jet.go @@ -8,7 +8,7 @@ import ( "reflect" "strings" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" "github.com/CloudyKit/jet" ) diff --git a/websocket/websocket.go b/websocket/websocket.go index c39e4c7d..f26e239a 100644 --- a/websocket/websocket.go +++ b/websocket/websocket.go @@ -3,7 +3,7 @@ package websocket import ( "net/http" - "github.com/kataras/iris/context" + "github.com/kataras/iris/v12/context" "github.com/kataras/neffos" "github.com/kataras/neffos/gobwas"