mirror of
https://github.com/beego/bee.git
synced 2024-11-22 20:20:55 +00:00
fix the beego version
This commit is contained in:
parent
4bc70441d2
commit
08ff1c91ef
@ -43,7 +43,7 @@ func versionCmd(cmd *Command, args []string) int {
|
|||||||
|
|
||||||
func getbeegoVersion() string {
|
func getbeegoVersion() string {
|
||||||
gopath := os.Getenv("GOPATH")
|
gopath := os.Getenv("GOPATH")
|
||||||
re, err := regexp.Compile(`const VERSION = "([0-9.]+)"`)
|
re, err := regexp.Compile(`VERSION = "([0-9.]+)"`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user