1
0
mirror of https://github.com/beego/bee.git synced 2025-07-10 11:30:20 +00:00

Using beego/beego

This commit is contained in:
Ming Deng
2020-12-14 00:44:48 +08:00
parent bc846b254e
commit 9d68c302bd
21 changed files with 43 additions and 540 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/astaxie/beego".*?\).*func main()`)
hasBeegoRegex := regexp.MustCompile(`(?s)package main.*?import.*?\(.*?github.com/beego/beego".*?\).*func main()`)
c := make(chan error)
// Walk the application path tree to look for main files.
// Main files must satisfy the 'hasBeegoRegex' regular expression.