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

+ 1
- 1
HISTORY.md View File

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


+ 1
- 1
HISTORY_ES.md View File

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


+ 1
- 5
README.md View File

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


+ 1
- 1
README_ES.md View File

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


+ 1
- 1
README_FA.md View File

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


+ 1
- 1
README_GR.md View File

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


+ 1
- 1
README_KO.md View File

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


+ 1
- 1
README_ZH.md View File

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


+ 1
- 1
VERSION View File

@@ -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

+ 1
- 1
_benchmarks/iris-mvc-templates/controllers/about_controller.go View File

@@ -1,6 +1,6 @@
package controllers

import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"

type AboutController struct{}



+ 1
- 1
_benchmarks/iris-mvc-templates/controllers/contact_controller.go View File

@@ -1,6 +1,6 @@
package controllers

import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"

type ContactController struct{}



+ 1
- 1
_benchmarks/iris-mvc-templates/controllers/home_controller.go View File

@@ -1,6 +1,6 @@
package controllers

import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"

type HomeController struct{}



+ 1
- 1
_benchmarks/iris-mvc-templates/controllers/index_controller.go View File

@@ -1,6 +1,6 @@
package controllers

import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"

type IndexController struct{}



+ 4
- 4
_benchmarks/iris-mvc-templates/main.go View File

@@ -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 (


+ 3
- 3
_benchmarks/iris-mvc/main.go View File

@@ -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() {


+ 3
- 3
_benchmarks/iris-sessions/main.go View File

@@ -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{


+ 1
- 1
_benchmarks/iris/main.go View File

@@ -1,6 +1,6 @@
package main

import "github.com/kataras/iris"
import "github.com/kataras/iris/v12"

func main() {
app := iris.New()


+ 2
- 2
_examples/README_ZH.md View File

@@ -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() {


+ 1
- 1
_examples/apidoc/yaag/main.go View File

@@ -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"


+ 2
- 2
_examples/authentication/basicauth/main.go View File

@@ -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 {


+ 1
- 1
_examples/authentication/basicauth/main_test.go View File

@@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestBasicAuth(t *testing.T) {


+ 2
- 2
_examples/authentication/oauth2/main.go View File

@@ -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



+ 1
- 1
_examples/cache/client-side/main.go View File

@@ -8,7 +8,7 @@ package main
import (
"time"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

const refreshEvery = 10 * time.Second


+ 2
- 2
_examples/cache/simple/main.go View File

@@ -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


+ 7
- 7
_examples/configuration/README.md View File

@@ -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() {


+ 1
- 1
_examples/configuration/from-configuration-structure/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/configuration/from-toml-file/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/configuration/from-yaml-file/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/configuration/from-yaml-file/shared-configuration/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/configuration/functional/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/convert-handlers/negroni-like/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/convert-handlers/nethttp/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/convert-handlers/real-usecase-raven/wrapping-the-router/main.go View File

@@ -6,7 +6,7 @@ import (
"net/http"
"runtime/debug"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/getsentry/raven-go"
)


+ 1
- 1
_examples/convert-handlers/real-usecase-raven/writing-middleware/main.go View File

@@ -5,7 +5,7 @@ import (
"fmt"
"runtime/debug"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/getsentry/raven-go"
)


+ 1
- 1
_examples/cookies/basic/main.go View File

@@ -1,6 +1,6 @@
package main

import "github.com/kataras/iris"
import "github.com/kataras/iris/v12"

func newApp() *iris.Application {
app := iris.New()


+ 1
- 1
_examples/cookies/basic/main_test.go View File

@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestCookiesBasic(t *testing.T) {


+ 1
- 1
_examples/cookies/securecookie/main.go View File

@@ -6,7 +6,7 @@ package main
// $ go run main.go

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/gorilla/securecookie"
)


+ 1
- 1
_examples/cookies/securecookie/main_test.go View File

@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestCookiesBasic(t *testing.T) {


+ 1
- 1
_examples/experimental-handlers/casbin/middleware/main.go View File

@@ -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"


+ 1
- 1
_examples/experimental-handlers/casbin/middleware/main_test.go View File

@@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestCasbinMiddleware(t *testing.T) {


+ 1
- 1
_examples/experimental-handlers/casbin/wrapper/main.go View File

@@ -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"


+ 1
- 1
_examples/experimental-handlers/casbin/wrapper/main_test.go View File

@@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestCasbinWrapper(t *testing.T) {


+ 1
- 1
_examples/experimental-handlers/cloudwatch/simple/main.go View File

@@ -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"


+ 1
- 1
_examples/experimental-handlers/cors/simple/client/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

// NOTE: THIS IS OPTIONALLY.


+ 1
- 1
_examples/experimental-handlers/cors/simple/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/experimental-handlers/csrf/main.go View File

@@ -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"
)


+ 1
- 1
_examples/experimental-handlers/jwt/main.go View File

@@ -8,7 +8,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/iris-contrib/middleware/jwt"
)


+ 1
- 1
_examples/experimental-handlers/newrelic/simple/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/iris-contrib/middleware/newrelic"
)


+ 1
- 1
_examples/experimental-handlers/prometheus/simple/main.go View File

@@ -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"


+ 1
- 1
_examples/experimental-handlers/secure/simple/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/iris-contrib/middleware/secure"
)


+ 1
- 1
_examples/experimental-handlers/tollboothic/limit-handler/main.go View File

@@ -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"


+ 1
- 1
_examples/file-server/basic/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func newApp() *iris.Application {


+ 1
- 1
_examples/file-server/basic/main_test.go View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

type resource string


+ 1
- 1
_examples/file-server/embedding-files-into-app/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

// Follow these steps first:


+ 1
- 1
_examples/file-server/embedding-files-into-app/main_test.go View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

type resource string


+ 1
- 1
_examples/file-server/embedding-gziped-files-into-app/main.go View File

@@ -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.


+ 1
- 1
_examples/file-server/embedding-gziped-files-into-app/main_test.go View File

@@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
"github.com/klauspost/compress/gzip"
)



+ 1
- 1
_examples/file-server/favicon/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/file-server/send-files/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/file-server/single-page-application/basic/main.go View File

@@ -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


+ 1
- 1
_examples/file-server/single-page-application/basic/main_test.go View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

type resource string


+ 1
- 1
_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go View File

@@ -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/...


+ 1
- 1
_examples/file-server/single-page-application/embedded-single-page-application/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

// $ go get -u github.com/shuLhan/go-bindata/...


+ 1
- 1
_examples/file-server/single-page-application/embedded-single-page-application/main_test.go View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

type resource string


+ 3
- 3
_examples/hello-world/main.go View File

@@ -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() {


+ 2
- 2
_examples/hero/basic/main.go View File

@@ -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() {


+ 1
- 1
_examples/hero/overview/datasource/movies.go View File

@@ -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{


+ 8
- 8
_examples/hero/overview/main.go View File

@@ -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() {


+ 1
- 1
_examples/hero/overview/repositories/movie_repository.go View File

@@ -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.


+ 2
- 2
_examples/hero/overview/services/movie_service.go View File

@@ -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.


+ 1
- 1
_examples/hero/overview/web/middleware/basicauth.go View File

@@ -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{


+ 1
- 1
_examples/hero/overview/web/routes/hello.go View File

@@ -5,7 +5,7 @@ package routes
import (
"errors"

"github.com/kataras/iris/hero"
"github.com/kataras/iris/v12/hero"
)

var helloView = hero.View{


+ 3
- 3
_examples/hero/overview/web/routes/movies.go View File

@@ -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.


+ 4
- 4
_examples/hero/sessions/main.go View File

@@ -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() {


+ 2
- 2
_examples/hero/sessions/routes/index.go View File

@@ -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.


+ 3
- 3
_examples/hero/smart-contract/main.go View File

@@ -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.


+ 3
- 3
_examples/http-listening/README.md View File

@@ -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"
)




+ 1
- 1
_examples/http-listening/custom-httpserver/easy-way/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/custom-httpserver/multi/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/custom-httpserver/std-way/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/custom-listener/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"net"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/custom-listener/unix-reuseport/main.go View File

@@ -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


+ 1
- 1
_examples/http-listening/graceful-shutdown/custom-notifier/main.go View File

@@ -7,7 +7,7 @@ import (
"syscall"
"time"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/graceful-shutdown/default-notifier/main.go View File

@@ -4,7 +4,7 @@ import (
stdContext "context"
"time"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

// Before continue:


+ 1
- 1
_examples/http-listening/http3-quic/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"

"github.com/lucas-clemente/quic-go/http3"
)


+ 1
- 1
_examples/http-listening/iris-configurator-and-host-configurator/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/listen-addr-public/main.go View File

@@ -1,6 +1,6 @@
package main

import "github.com/kataras/iris"
import "github.com/kataras/iris/v12"

func main() {
app := iris.New()


+ 1
- 1
_examples/http-listening/listen-addr/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/listen-addr/omit-server-errors/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http-listening/listen-addr/omit-server-errors/main_test.go View File

@@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func logger(app *iris.Application) *bytes.Buffer {


+ 1
- 1
_examples/http-listening/listen-letsencrypt/main.go View File

@@ -2,7 +2,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 2
- 2
_examples/http-listening/listen-tls/main.go View File

@@ -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() {


+ 2
- 2
_examples/http-listening/listen-unix/main.go View File

@@ -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() {


+ 1
- 1
_examples/http-listening/notify-on-shutdown/main.go View File

@@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http_request/extract-referer/main.go View File

@@ -1,7 +1,7 @@
package main

import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http_request/read-custom-per-type/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"gopkg.in/yaml.v2"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http_request/read-custom-per-type/main_test.go View File

@@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestReadCustomPerType(t *testing.T) {


+ 1
- 1
_examples/http_request/read-custom-via-unmarshaler/main.go View File

@@ -3,7 +3,7 @@ package main
import (
"gopkg.in/yaml.v2"

"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)

func main() {


+ 1
- 1
_examples/http_request/read-custom-via-unmarshaler/main_test.go View File

@@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)

func TestReadCustomViaUnmarshaler(t *testing.T) {


+ 1
- 1
_examples/http_request/read-form/main.go View File

@@ -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