1
0
mirror of https://github.com/beego/bee.git synced 2025-07-10 06:20:19 +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.