chore: update goctl version (#1250)

* chore: update goctl version

* style: coding style
This commit is contained in:
Kevin Wan
2021-11-16 21:57:55 +08:00
committed by GitHub
parent 2d4c29ea7c
commit 417a96cbf2

View File

@@ -6,15 +6,15 @@ import (
)
// 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
func GetGoctlVersion() string {
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
// is greater than the target version
func IsVersionGreaterThan(version, target string) bool {