diff --git a/version/version.go b/version/version.go index d5951f2..d3558c9 100644 --- a/version/version.go +++ b/version/version.go @@ -18,8 +18,12 @@ var ( GitCommit string ) +func versionize(s string) string { + return strings.TrimPrefix(s, "v") +} + func String() string { - return fmt.Sprintf("%s-%s", Name, strings.TrimPrefix(Version, "v")) + return fmt.Sprintf("%s-%s", Name, versionize(Version)) } func BuildString() string {