using new organization
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// GetFuncName get function name
|
||||
|
||||
@@ -6,9 +6,9 @@ an example for use captcha
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/cache"
|
||||
"github.com/astaxie/beego/utils/captcha"
|
||||
"github.com/beego/beego"
|
||||
"github.com/beego/beego/cache"
|
||||
"github.com/beego/beego/utils/captcha"
|
||||
)
|
||||
|
||||
var cpt *captcha.Captcha
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
// package controllers
|
||||
//
|
||||
// import (
|
||||
// "github.com/astaxie/beego"
|
||||
// "github.com/astaxie/beego/cache"
|
||||
// "github.com/astaxie/beego/utils/captcha"
|
||||
// "github.com/beego/beego"
|
||||
// "github.com/beego/beego/cache"
|
||||
// "github.com/beego/beego/utils/captcha"
|
||||
// )
|
||||
//
|
||||
// var cpt *captcha.Captcha
|
||||
@@ -63,11 +63,11 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/server/web/captcha"
|
||||
beecontext "github.com/astaxie/beego/server/web/context"
|
||||
"github.com/beego/beego/server/web/captcha"
|
||||
beecontext "github.com/beego/beego/server/web/context"
|
||||
|
||||
"github.com/astaxie/beego/adapter/cache"
|
||||
"github.com/astaxie/beego/adapter/context"
|
||||
"github.com/beego/beego/adapter/cache"
|
||||
"github.com/beego/beego/adapter/context"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -17,7 +17,7 @@ package captcha
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/astaxie/beego/server/web/captcha"
|
||||
"github.com/beego/beego/server/web/captcha"
|
||||
)
|
||||
|
||||
// Image struct
|
||||
|
||||
@@ -17,7 +17,7 @@ package captcha
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/astaxie/beego/adapter/utils"
|
||||
"github.com/beego/beego/adapter/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// Display print the data in console
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// SelfPath gets compiled executable file absolute path
|
||||
|
||||
@@ -17,7 +17,7 @@ package utils
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// Email is the type used for email messages
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
package pagination
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/adapter/context"
|
||||
beecontext "github.com/astaxie/beego/server/web/context"
|
||||
"github.com/astaxie/beego/server/web/pagination"
|
||||
"github.com/beego/beego/adapter/context"
|
||||
beecontext "github.com/beego/beego/server/web/context"
|
||||
"github.com/beego/beego/server/web/pagination"
|
||||
)
|
||||
|
||||
// SetPaginator Instantiates a Paginator and assigns it to context.Input.Data("paginator").
|
||||
|
||||
@@ -8,7 +8,7 @@ In your beego.Controller:
|
||||
|
||||
package controllers
|
||||
|
||||
import "github.com/astaxie/beego/utils/pagination"
|
||||
import "github.com/beego/beego/utils/pagination"
|
||||
|
||||
type PostsController struct {
|
||||
beego.Controller
|
||||
|
||||
@@ -17,7 +17,7 @@ package pagination
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/core/utils/pagination"
|
||||
"github.com/beego/beego/core/utils/pagination"
|
||||
)
|
||||
|
||||
// Paginator within the state of a http request.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// RandomCreateBytes generate random []byte by specify chars.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// BeeMap is a map with lock
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
type reducetype func(interface{}) interface{}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/core/utils"
|
||||
"github.com/beego/beego/core/utils"
|
||||
)
|
||||
|
||||
// GetGOPATHs returns all paths in GOPATH variable.
|
||||
|
||||
Reference in New Issue
Block a user