diff --git a/cmd/commands/new/new.go b/cmd/commands/new/new.go index 6c71f07..91830d6 100644 --- a/cmd/commands/new/new.go +++ b/cmd/commands/new/new.go @@ -70,7 +70,7 @@ var maingo = `package main import ( _ "{{.Appname}}/routers" - "github.com/astaxie/beego" + beego "github.com/astaxie/beego/pkg/server/web" ) func main() { @@ -82,7 +82,7 @@ var router = `package routers import ( "{{.Appname}}/controllers" - "github.com/astaxie/beego" + beego "github.com/astaxie/beego/pkg/server/web" ) func init() { @@ -106,7 +106,7 @@ import ( "path/filepath" _ "{{.Appname}}/routers" - "github.com/astaxie/beego" + beego "github.com/astaxie/beego/pkg/server/web" . "github.com/smartystreets/goconvey/convey" ) @@ -140,7 +140,7 @@ func TestBeego(t *testing.T) { var controllers = `package controllers import ( - "github.com/astaxie/beego" + beego "github.com/astaxie/beego/pkg/server/web" ) type MainController struct { diff --git a/config/conf.go b/config/conf.go index e0603e9..4f150aa 100644 --- a/config/conf.go +++ b/config/conf.go @@ -27,7 +27,7 @@ import ( const confVer = 0 const ( - Version = "1.12.0" + Version = "2.0.0" GitRemotePath = "github.com/beego/bee" )