1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 13:30:39 +00:00

generate go.mod skip Minor version.

This commit is contained in:
qiantao
2020-07-11 12:29:24 +08:00
parent bb5e0435c9
commit 4110083cae
4 changed files with 9 additions and 8 deletions

View File

@ -447,3 +447,8 @@ func defaultGOPATH() string {
}
return ""
}
func GetGoVersionSkipMinor() string {
strArray := strings.Split(runtime.Version()[2:], `.`)
return strArray[0] + `.` + strArray[1]
}