Browse Source

obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository

We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
pull/1789/head
Gerasimos (Makis) Maropoulos 2 years ago
parent
commit
3945fa68d1
  1. 2
      HISTORY.md
  2. 2
      HISTORY_ES.md
  3. 6
      README.md
  4. 2
      README_ES.md
  5. 2
      README_FA.md
  6. 2
      README_GR.md
  7. 2
      README_KO.md
  8. 2
      README_ZH.md
  9. 2
      VERSION
  10. 2
      _benchmarks/iris-mvc-templates/controllers/about_controller.go
  11. 2
      _benchmarks/iris-mvc-templates/controllers/contact_controller.go
  12. 2
      _benchmarks/iris-mvc-templates/controllers/home_controller.go
  13. 2
      _benchmarks/iris-mvc-templates/controllers/index_controller.go
  14. 8
      _benchmarks/iris-mvc-templates/main.go
  15. 6
      _benchmarks/iris-mvc/main.go
  16. 6
      _benchmarks/iris-sessions/main.go
  17. 2
      _benchmarks/iris/main.go
  18. 4
      _examples/README_ZH.md
  19. 2
      _examples/apidoc/yaag/main.go
  20. 4
      _examples/authentication/basicauth/main.go
  21. 2
      _examples/authentication/basicauth/main_test.go
  22. 4
      _examples/authentication/oauth2/main.go
  23. 2
      _examples/cache/client-side/main.go
  24. 4
      _examples/cache/simple/main.go
  25. 14
      _examples/configuration/README.md
  26. 2
      _examples/configuration/from-configuration-structure/main.go
  27. 2
      _examples/configuration/from-toml-file/main.go
  28. 2
      _examples/configuration/from-yaml-file/main.go
  29. 2
      _examples/configuration/from-yaml-file/shared-configuration/main.go
  30. 2
      _examples/configuration/functional/main.go
  31. 2
      _examples/convert-handlers/negroni-like/main.go
  32. 2
      _examples/convert-handlers/nethttp/main.go
  33. 2
      _examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go
  34. 2
      _examples/convert-handlers/real-usecase-raven/writing-middleware/main.go
  35. 2
      _examples/cookies/basic/main.go
  36. 2
      _examples/cookies/basic/main_test.go
  37. 2
      _examples/cookies/securecookie/main.go
  38. 2
      _examples/cookies/securecookie/main_test.go
  39. 2
      _examples/experimental-handlers/casbin/middleware/main.go
  40. 2
      _examples/experimental-handlers/casbin/middleware/main_test.go
  41. 2
      _examples/experimental-handlers/casbin/wrapper/main.go
  42. 2
      _examples/experimental-handlers/casbin/wrapper/main_test.go
  43. 2
      _examples/experimental-handlers/cloudwatch/simple/main.go
  44. 2
      _examples/experimental-handlers/cors/simple/client/main.go
  45. 2
      _examples/experimental-handlers/cors/simple/main.go
  46. 2
      _examples/experimental-handlers/csrf/main.go
  47. 2
      _examples/experimental-handlers/jwt/main.go
  48. 2
      _examples/experimental-handlers/newrelic/simple/main.go
  49. 2
      _examples/experimental-handlers/prometheus/simple/main.go
  50. 2
      _examples/experimental-handlers/secure/simple/main.go
  51. 2
      _examples/experimental-handlers/tollboothic/limit-handler/main.go
  52. 2
      _examples/file-server/basic/main.go
  53. 2
      _examples/file-server/basic/main_test.go
  54. 2
      _examples/file-server/embedding-files-into-app/main.go
  55. 2
      _examples/file-server/embedding-files-into-app/main_test.go
  56. 2
      _examples/file-server/embedding-gziped-files-into-app/main.go
  57. 2
      _examples/file-server/embedding-gziped-files-into-app/main_test.go
  58. 2
      _examples/file-server/favicon/main.go
  59. 2
      _examples/file-server/send-files/main.go
  60. 2
      _examples/file-server/single-page-application/basic/main.go
  61. 2
      _examples/file-server/single-page-application/basic/main_test.go
  62. 2
      _examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go
  63. 2
      _examples/file-server/single-page-application/embedded-single-page-application/main.go
  64. 2
      _examples/file-server/single-page-application/embedded-single-page-application/main_test.go
  65. 6
      _examples/hello-world/main.go
  66. 4
      _examples/hero/basic/main.go
  67. 2
      _examples/hero/overview/datasource/movies.go
  68. 16
      _examples/hero/overview/main.go
  69. 2
      _examples/hero/overview/repositories/movie_repository.go
  70. 4
      _examples/hero/overview/services/movie_service.go
  71. 2
      _examples/hero/overview/web/middleware/basicauth.go
  72. 2
      _examples/hero/overview/web/routes/hello.go
  73. 6
      _examples/hero/overview/web/routes/movies.go
  74. 8
      _examples/hero/sessions/main.go
  75. 4
      _examples/hero/sessions/routes/index.go
  76. 6
      _examples/hero/smart-contract/main.go
  77. 6
      _examples/http-listening/README.md
  78. 2
      _examples/http-listening/custom-httpserver/easy-way/main.go
  79. 2
      _examples/http-listening/custom-httpserver/multi/main.go
  80. 2
      _examples/http-listening/custom-httpserver/std-way/main.go
  81. 2
      _examples/http-listening/custom-listener/main.go
  82. 2
      _examples/http-listening/custom-listener/unix-reuseport/main.go
  83. 2
      _examples/http-listening/graceful-shutdown/custom-notifier/main.go
  84. 2
      _examples/http-listening/graceful-shutdown/default-notifier/main.go
  85. 2
      _examples/http-listening/http3-quic/main.go
  86. 2
      _examples/http-listening/iris-configurator-and-host-configurator/main.go
  87. 2
      _examples/http-listening/listen-addr-public/main.go
  88. 2
      _examples/http-listening/listen-addr/main.go
  89. 2
      _examples/http-listening/listen-addr/omit-server-errors/main.go
  90. 2
      _examples/http-listening/listen-addr/omit-server-errors/main_test.go
  91. 2
      _examples/http-listening/listen-letsencrypt/main.go
  92. 4
      _examples/http-listening/listen-tls/main.go
  93. 4
      _examples/http-listening/listen-unix/main.go
  94. 2
      _examples/http-listening/notify-on-shutdown/main.go
  95. 2
      _examples/http_request/extract-referer/main.go
  96. 2
      _examples/http_request/read-custom-per-type/main.go
  97. 2
      _examples/http_request/read-custom-per-type/main_test.go
  98. 2
      _examples/http_request/read-custom-via-unmarshaler/main.go
  99. 2
      _examples/http_request/read-custom-via-unmarshaler/main_test.go
  100. 2
      _examples/http_request/read-form/main.go

2
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()

2
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()

6
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
<details>
@ -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()

2
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()

2
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()

2
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()

2
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()

2
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()

2
VERSION

@ -1 +1 @@
11.2.8:https://github.com/kataras/iris/releases/tag/v11.2.8
12.0.0:https://github.com/kataras/iris/releases/tag/v12.0.0

2
_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{}

2
_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{}

2
_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{}

2
_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{}

8
_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 (

6
_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() {

6
_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{

2
_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()

4
_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() {

2
_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"

4
_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 {

2
_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) {

4
_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

2
_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

4
_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

14
_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() {

2
_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() {

2
_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() {

2
_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() {

2
_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() {

2
_examples/configuration/functional/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
func main() {

2
_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() {

2
_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() {

2
_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"
)

2
_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"
)

2
_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()

2
_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) {

2
_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"
)

2
_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) {

2
_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"

2
_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) {

2
_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"

2
_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) {

2
_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"

2
_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.

2
_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() {

2
_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"
)

2
_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"
)

2
_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"
)

2
_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"

2
_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"
)

2
_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"

2
_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 {

2
_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

2
_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:

2
_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

2
_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.

2
_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"
)

2
_examples/file-server/favicon/main.go

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
func main() {

2
_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() {

2
_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

2
_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

2
_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/...

2
_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/...

2
_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

6
_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() {

4
_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() {

2
_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{

16
_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"
"github.com/kataras/iris/hero"
"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/v12"
"github.com/kataras/iris/v12/hero"
)
func main() {

2
_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.

4
_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.

2
_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{

2
_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{

6
_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.

8
_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() {

4
_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.

6
_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.

6
_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"
)

2
_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() {

2
_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() {

2
_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() {

2
_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() {

2
_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

2
_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() {

2
_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:

2
_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"
)

2
_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() {

2
_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()

2
_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() {

2
_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() {

2
_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 {

2
_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() {

4
_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() {

4
_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() {

2
_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() {

2
_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() {

2
_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() {

2
_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) {

2
_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() {

2
_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) {

2
_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 {

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save