Browse Source

Chore: use versionize

pull/133/head
xjasonlyu 3 years ago
parent
commit
bdf85afa3e
  1. 6
      version/version.go

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

Loading…
Cancel
Save