1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 13:30:39 +00:00

using beego v2

This commit is contained in:
Ming Deng
2020-12-14 13:08:47 +08:00
parent 9d68c302bd
commit cdb41fad3f
16 changed files with 38 additions and 38 deletions

View File

@ -88,7 +88,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/beego/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.

View File

@ -14,4 +14,4 @@
package utils
const BEEGO_VERSION = "v1.12.4-0.20201213162117-e2a859d1564a"
const BEEGO_VERSION = "v2.0.0"