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:
@ -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.
|
||||
|
@ -14,4 +14,4 @@
|
||||
|
||||
package utils
|
||||
|
||||
const BEEGO_VERSION = "v1.12.4-0.20201213162117-e2a859d1564a"
|
||||
const BEEGO_VERSION = "v2.0.0"
|
||||
|
Reference in New Issue
Block a user