1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 13:30:39 +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.

View File

@ -14,4 +14,4 @@
package utils
const BEEGO_VERSION = "v1.12.4-0.20201114080429-05d8e293f7f3"
const BEEGO_VERSION = "v1.12.4-0.20201213162117-e2a859d1564a"