mirror of
https://github.com/beego/bee.git
synced 2025-06-28 22:40:19 +00:00
Merge branch 'develop-up' into develop
# Conflicts: # README.md # cmd/commands/update/update.go # cmd/commands/version/banner.go
This commit is contained in:
.goxc.jsonLICENSEMakefileREADME.mdbee.json
cmd
bee.go
commands
config
generate
g.gog_appcode.gog_controllers.gog_hproseappcode.gog_migration.gog_model.gog_scaffold.gog_views.go
go.modgo.sumgosimple.ignoreswaggergen
internal
app
module
pkg
logger
main.gostaticcheck.ignoreutils
@ -21,7 +21,7 @@ import (
|
||||
|
||||
"runtime"
|
||||
|
||||
"github.com/beego/bee/config"
|
||||
"github.com/beego/bee/v2/config"
|
||||
)
|
||||
|
||||
const appName = "Beego"
|
||||
|
@ -32,10 +32,10 @@ import (
|
||||
"time"
|
||||
"unicode"
|
||||
|
||||
"github.com/beego/bee/config"
|
||||
"github.com/beego/bee/internal/pkg/system"
|
||||
beeLogger "github.com/beego/bee/logger"
|
||||
"github.com/beego/bee/logger/colors"
|
||||
"github.com/beego/bee/v2/config"
|
||||
"github.com/beego/bee/v2/internal/pkg/system"
|
||||
beeLogger "github.com/beego/bee/v2/logger"
|
||||
"github.com/beego/bee/v2/logger/colors"
|
||||
)
|
||||
|
||||
type tagName struct {
|
||||
@ -98,7 +98,7 @@ func IsInGOPATH(thePath string) bool {
|
||||
// IsBeegoProject checks whether the current path is a Beego application or not
|
||||
func IsBeegoProject(thePath string) bool {
|
||||
mainFiles := []string{}
|
||||
hasBeegoRegex := regexp.MustCompile(`(?s)package main.*?import.*?\(.*?github.com/astaxie/beego".*?\).*func main()`)
|
||||
hasBeegoRegex := regexp.MustCompile(`(?s)package main.*?import.*?\(.*?github.com/beego/beego/v2".*?\).*func main()`)
|
||||
c := make(chan error)
|
||||
// Walk the application path tree to look for main files.
|
||||
// Main files must satisfy the 'hasBeegoRegex' regular expression.
|
||||
|
17
utils/version.go
Normal file
17
utils/version.go
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright 2020
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package utils
|
||||
|
||||
const BEEGO_VERSION = "v2.0.1"
|
Reference in New Issue
Block a user