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

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


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
This commit is contained in:
Gerasimos (Makis) Maropoulos 2019-10-25 01:27:02 +03:00
parent d13f1fe877
commit 3945fa68d1
362 changed files with 649 additions and 653 deletions

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

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

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

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

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

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

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

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

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

View File

@ -1,6 +1,6 @@
package controllers
import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"
type AboutController struct{}

View File

@ -1,6 +1,6 @@
package controllers
import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"
type ContactController struct{}

View File

@ -1,6 +1,6 @@
package controllers
import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"
type HomeController struct{}

View File

@ -1,6 +1,6 @@
package controllers
import "github.com/kataras/iris/mvc"
import "github.com/kataras/iris/v12/mvc"
type IndexController struct{}

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 (

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

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{

View File

@ -1,6 +1,6 @@
package main
import "github.com/kataras/iris"
import "github.com/kataras/iris/v12"
func main() {
app := iris.New()

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

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"

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 {

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

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

View File

@ -8,7 +8,7 @@ package main
import (
"time"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
const refreshEvery = 10 * time.Second

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

@ -5,7 +5,7 @@ import (
"fmt"
"runtime/debug"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
"github.com/getsentry/raven-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()

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

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

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

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"

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

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"

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

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"

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
// NOTE: THIS IS OPTIONALLY.

View File

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

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

View File

@ -8,7 +8,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
"github.com/iris-contrib/middleware/jwt"
)

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
"github.com/iris-contrib/middleware/newrelic"
)

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"

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
"github.com/iris-contrib/middleware/secure"
)

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"

View File

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

View File

@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)
type resource string

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
// Follow these steps first:

View File

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)
type resource string

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.

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

View File

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

View File

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

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

View File

@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)
type resource string

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

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

View File

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/kataras/iris/httptest"
"github.com/kataras/iris/v12/httptest"
)
type resource string

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

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

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{

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

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.

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.

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{

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{

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.

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

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.

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.

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

View File

@ -4,7 +4,7 @@ import (
stdContext "context"
"time"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
// Before continue:

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

View File

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

View File

@ -1,6 +1,6 @@
package main
import "github.com/kataras/iris"
import "github.com/kataras/iris/v12"
func main() {
app := iris.New()

View File

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

View File

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

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 {

View File

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

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

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

View File

@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
func main() {

View File

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

View File

@ -3,7 +3,7 @@ package main
import (
"gopkg.in/yaml.v2"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
func main() {

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

View File

@ -3,7 +3,7 @@ package main
import (
"gopkg.in/yaml.v2"
"github.com/kataras/iris"
"github.com/kataras/iris/v12"
)
func main() {

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

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 have changed in this diff Show More