using new organization

This commit is contained in:
Ming Deng
2020-12-13 23:09:19 +08:00
parent 093f976365
commit a70f7fc920
253 changed files with 504 additions and 503 deletions

View File

@@ -15,7 +15,7 @@
package utils
import (
"github.com/astaxie/beego/core/utils"
"github.com/beego/beego/core/utils"
)
// GetFuncName get function name

View File

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

View File

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

View File

@@ -17,7 +17,7 @@ package captcha
import (
"io"
"github.com/astaxie/beego/server/web/captcha"
"github.com/beego/beego/server/web/captcha"
)
// Image struct

View File

@@ -17,7 +17,7 @@ package captcha
import (
"testing"
"github.com/astaxie/beego/adapter/utils"
"github.com/beego/beego/adapter/utils"
)
const (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -15,7 +15,7 @@
package utils
import (
"github.com/astaxie/beego/core/utils"
"github.com/beego/beego/core/utils"
)
type reducetype func(interface{}) interface{}

View File

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