From b6bda54870fd1ff56b2c27daf9cfecc6a0b05d89 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 1 Dec 2021 23:33:23 +0800 Subject: [PATCH] chore: update cli version (#1287) --- tools/goctl/internal/version/version.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index 1cb85fe7..82ee413c 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -6,7 +6,7 @@ import ( ) // BuildVersion is the version of goctl. -const BuildVersion = "1.2.3-cli" +const BuildVersion = "1.2.4-cli" var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5} @@ -24,7 +24,8 @@ func IsVersionGreaterThan(version, target string) bool { return true } else if versionNumber < targetVersionNumber { return false - } else { // unchecked case, in normal, the goctl version does not contains suffix in release. + } else { + // unchecked case, in normal, the goctl version does not contain suffix in release. return tag[versionTag] > tag[targetTag] } }