rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

@@ -15,7 +15,7 @@
// Package context provide the context utils
// Usage:
//
// import "github.com/beego/beego/context"
// import "github.com/beego/beego/v2/context"
//
// ctx := context.Context{Request:req,ResponseWriter:rw}
//
@@ -35,7 +35,7 @@ import (
"strings"
"time"
"github.com/beego/beego/core/utils"
"github.com/beego/beego/v2/core/utils"
)
// Commonly used mime-types

View File

@@ -29,7 +29,7 @@ import (
"strings"
"sync"
"github.com/beego/beego/server/web/session"
"github.com/beego/beego/v2/server/web/session"
)
// Regexes for checking the accept headers

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"reflect"
"github.com/beego/beego/core/logs"
beecontext "github.com/beego/beego/server/web/context"
"github.com/beego/beego/v2/core/logs"
beecontext "github.com/beego/beego/v2/server/web/context"
)
// ConvertParams converts http method params to values that will be passed to the method controller as arguments