diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index 73380151..1cb85fe7 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -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 {