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: Sessions as middleware:
```go ```go
import "github.com/kataras/iris/sessions" import "github.com/kataras/iris/v12/sessions"
// [...] // [...]
app := iris.New() 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: Sesiones como middleware:
```go ```go
import "github.com/kataras/iris/sessions" import "github.com/kataras/iris/v12/sessions"
// [...] // [...]
app := iris.New() 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. 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 ## Learning Iris
<details> <details>
@ -25,7 +21,7 @@ $ cat example.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() app := iris.Default()

View File

@ -25,7 +25,7 @@ $ cat ejemplo.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() app := iris.Default()

View File

@ -41,7 +41,7 @@ $ cat example.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() app := iris.Default()

View File

@ -21,7 +21,7 @@ $ cat example.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() app := iris.Default()

View File

@ -25,7 +25,7 @@ $ cat example.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() app := iris.Default()

View File

@ -23,7 +23,7 @@ $ cat example.go
```go ```go
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
func main() { func main() {
app := iris.Default() 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 package controllers
import "github.com/kataras/iris/mvc" import "github.com/kataras/iris/v12/mvc"
type AboutController struct{} type AboutController struct{}

View File

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

View File

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

View File

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

View File

@ -1,11 +1,11 @@
package main package main
import ( 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/v12"
"github.com/kataras/iris/context" "github.com/kataras/iris/v12/context"
"github.com/kataras/iris/mvc" "github.com/kataras/iris/v12/mvc"
) )
const ( const (

View File

@ -1,10 +1,10 @@
package main package main
import ( 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/v12"
"github.com/kataras/iris/mvc" "github.com/kataras/iris/v12/mvc"
) )
func main() { func main() {

View File

@ -3,9 +3,9 @@ package main
import ( import (
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/context" "github.com/kataras/iris/v12/context"
"github.com/kataras/iris/sessions" "github.com/kataras/iris/v12/sessions"
) )
var sess = sessions.New(sessions.Config{ var sess = sessions.New(sessions.Config{

View File

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

View File

@ -142,8 +142,8 @@ Iris 支持快速的请求数据,模型,持久性数据和绑定。
```go ```go
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/mvc" "github.com/kataras/iris/v12/mvc"
) )
func main() { func main() {

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/betacraft/yaag/irisyaag" "github.com/betacraft/yaag/irisyaag"
"github.com/betacraft/yaag/yaag" "github.com/betacraft/yaag/yaag"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/middleware/basicauth" "github.com/kataras/iris/v12/middleware/basicauth"
) )
func newApp() *iris.Application { func newApp() *iris.Application {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestBasicAuth(t *testing.T) { func TestBasicAuth(t *testing.T) {

View File

@ -24,9 +24,9 @@ import (
"os" "os"
"sort" "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 "github.com/gorilla/securecookie" // optionally, used for session's encoder/decoder

View File

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

View File

@ -3,9 +3,9 @@ package main
import ( import (
"time" "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 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 package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {
@ -46,7 +46,7 @@ func main() {
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {
@ -87,7 +87,7 @@ Charset = "UTF-8"
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {
@ -119,7 +119,7 @@ Charset: UTF-8
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {
@ -237,8 +237,8 @@ package counter
import ( import (
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/core/host" "github.com/kataras/iris/v12/core/host"
) )
func Configurator(app *iris.Application) { func Configurator(app *iris.Application) {
@ -271,7 +271,7 @@ package main
import ( import (
"counter" "counter"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"runtime/debug" "runtime/debug"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/getsentry/raven-go" "github.com/getsentry/raven-go"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"runtime/debug" "runtime/debug"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/getsentry/raven-go" "github.com/getsentry/raven-go"
) )

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestCookiesBasic(t *testing.T) { func TestCookiesBasic(t *testing.T) {

View File

@ -6,7 +6,7 @@ package main
// $ go run main.go // $ go run main.go
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestCookiesBasic(t *testing.T) { func TestCookiesBasic(t *testing.T) {

View File

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

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestCasbinMiddleware(t *testing.T) { func TestCasbinMiddleware(t *testing.T) {

View File

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

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestCasbinWrapper(t *testing.T) { func TestCasbinWrapper(t *testing.T) {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatch" "github.com/aws/aws-sdk-go/service/cloudwatch"

View File

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

View File

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

View File

@ -13,7 +13,7 @@ package main
// $ go get -u github.com/iris-contrib/middleware/... // $ go get -u github.com/iris-contrib/middleware/...
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/iris-contrib/middleware/csrf" "github.com/iris-contrib/middleware/csrf"
) )

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import (
"math/rand" "math/rand"
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
prometheusMiddleware "github.com/iris-contrib/middleware/prometheus" prometheusMiddleware "github.com/iris-contrib/middleware/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
// NOTE: need different tool than the "embedding-files-into-app" example. // NOTE: need different tool than the "embedding-files-into-app" example.

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
"github.com/klauspost/compress/gzip" "github.com/klauspost/compress/gzip"
) )

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package main package main
import ( 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 // 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" "strings"
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
type resource string type resource string

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/kataras/iris" import "github.com/kataras/iris/v12"
// $ go get -u github.com/shuLhan/go-bindata/... // $ go get -u github.com/shuLhan/go-bindata/...
// $ go-bindata ./public/... // $ go-bindata ./public/...

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
// $ go get -u github.com/shuLhan/go-bindata/... // $ go get -u github.com/shuLhan/go-bindata/...

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
package datasource 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. // Movies is our imaginary data source.
var Movies = map[int64]datamodels.Movie{ var Movies = map[int64]datamodels.Movie{

View File

@ -3,14 +3,14 @@
package main package main
import ( import (
"github.com/kataras/iris/_examples/hero/overview/datasource" "github.com/kataras/iris/v12/_examples/hero/overview/datasource"
"github.com/kataras/iris/_examples/hero/overview/repositories" "github.com/kataras/iris/v12/_examples/hero/overview/repositories"
"github.com/kataras/iris/_examples/hero/overview/services" "github.com/kataras/iris/v12/_examples/hero/overview/services"
"github.com/kataras/iris/_examples/hero/overview/web/middleware" "github.com/kataras/iris/v12/_examples/hero/overview/web/middleware"
"github.com/kataras/iris/_examples/hero/overview/web/routes" "github.com/kataras/iris/v12/_examples/hero/overview/web/routes"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/hero" "github.com/kataras/iris/v12/hero"
) )
func main() { func main() {

View File

@ -6,7 +6,7 @@ import (
"errors" "errors"
"sync" "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. // Query represents the visitor and action queries.

View File

@ -3,8 +3,8 @@
package services package services
import ( import (
"github.com/kataras/iris/_examples/hero/overview/datamodels" "github.com/kataras/iris/v12/_examples/hero/overview/datamodels"
"github.com/kataras/iris/_examples/hero/overview/repositories" "github.com/kataras/iris/v12/_examples/hero/overview/repositories"
) )
// MovieService handles some of the CRUID operations of the movie datamodel. // MovieService handles some of the CRUID operations of the movie datamodel.

View File

@ -2,7 +2,7 @@
package middleware package middleware
import "github.com/kataras/iris/middleware/basicauth" import "github.com/kataras/iris/v12/middleware/basicauth"
// BasicAuth middleware sample. // BasicAuth middleware sample.
var BasicAuth = basicauth.New(basicauth.Config{ var BasicAuth = basicauth.New(basicauth.Config{

View File

@ -5,7 +5,7 @@ package routes
import ( import (
"errors" "errors"
"github.com/kataras/iris/hero" "github.com/kataras/iris/v12/hero"
) )
var helloView = hero.View{ var helloView = hero.View{

View File

@ -5,10 +5,10 @@ package routes
import ( import (
"errors" "errors"
"github.com/kataras/iris/_examples/hero/overview/datamodels" "github.com/kataras/iris/v12/_examples/hero/overview/datamodels"
"github.com/kataras/iris/_examples/hero/overview/services" "github.com/kataras/iris/v12/_examples/hero/overview/services"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
// Movies returns list of the movies. // Movies returns list of the movies.

View File

@ -3,11 +3,11 @@ package main
import ( import (
"time" "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/v12"
"github.com/kataras/iris/hero" // <- IMPORTANT "github.com/kataras/iris/v12/hero" // <- IMPORTANT
"github.com/kataras/iris/sessions" "github.com/kataras/iris/v12/sessions"
) )
func main() { func main() {

View File

@ -1,8 +1,8 @@
package routes package routes
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/sessions" "github.com/kataras/iris/v12/sessions"
) )
// Index will increment a simple int version based on the visits that this user/session did. // Index will increment a simple int version based on the visits that this user/session did.

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/kataras/iris/context" "github.com/kataras/iris/v12/context"
"github.com/kataras/iris/hero" "github.com/kataras/iris/v12/hero"
// External package to optionally filter JSON responses before sent, // External package to optionally filter JSON responses before sent,
// see `sendJSON` for more. // see `sendJSON` for more.

View File

@ -41,7 +41,7 @@ import (
"os" "os"
"net" "net"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func main() { func main() {
@ -85,7 +85,7 @@ import (
// - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details. // - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
"github.com/valyala/tcplisten" "github.com/valyala/tcplisten"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
// go get github.com/valyala/tcplisten // go get github.com/valyala/tcplisten
@ -227,7 +227,7 @@ import (
"context" "context"
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )

View File

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

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@ import (
// - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details. // - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
"github.com/valyala/tcplisten" "github.com/valyala/tcplisten"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
// $ go get github.com/valyala/tcplisten // $ go get github.com/valyala/tcplisten

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/kataras/iris" "github.com/kataras/iris/v12"
"github.com/lucas-clemente/quic-go/http3" "github.com/lucas-clemente/quic-go/http3"
) )

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/kataras/iris" "github.com/kataras/iris/v12"
) )
func logger(app *iris.Application) *bytes.Buffer { func logger(app *iris.Application) *bytes.Buffer {

View File

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

View File

@ -3,9 +3,9 @@ package main
import ( import (
"net/url" "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() { func main() {

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestReadCustomPerType(t *testing.T) { func TestReadCustomPerType(t *testing.T) {

View File

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

View File

@ -3,7 +3,7 @@ package main
import ( import (
"testing" "testing"
"github.com/kataras/iris/httptest" "github.com/kataras/iris/v12/httptest"
) )
func TestReadCustomViaUnmarshaler(t *testing.T) { func TestReadCustomViaUnmarshaler(t *testing.T) {

View File

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

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