chore: update goctl version (#1250)
* chore: update goctl version * style: coding style
This commit is contained in:
@@ -6,15 +6,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// BuildVersion is the version of goctl.
|
// BuildVersion is the version of goctl.
|
||||||
const BuildVersion = "1.2.3"
|
const BuildVersion = "1.2.3-cli"
|
||||||
|
|
||||||
|
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}
|
||||||
|
|
||||||
// GetGoctlVersion returns BuildVersion
|
// GetGoctlVersion returns BuildVersion
|
||||||
func GetGoctlVersion() string {
|
func GetGoctlVersion() string {
|
||||||
return BuildVersion
|
return BuildVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}
|
|
||||||
|
|
||||||
// IsVersionGreaterThan compares whether the current goctl version
|
// IsVersionGreaterThan compares whether the current goctl version
|
||||||
// is greater than the target version
|
// is greater than the target version
|
||||||
func IsVersionGreaterThan(version, target string) bool {
|
func IsVersionGreaterThan(version, target string) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user