chore: update goctl version (#1250)

* chore: update goctl version

* style: coding style
master
Kevin Wan 3 years ago committed by GitHub
parent 2d4c29ea7c
commit 417a96cbf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save