Skip to content

Commit

Permalink
release v1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: xiexianbin <[email protected]>
  • Loading branch information
xiexianbin committed Jun 4, 2022
1 parent 86e93f4 commit 27f1223
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ func (v Version) String() string {
// CurrentVersion represents the current build version.
// This should be the only one.
var CurrentVersion = Version{
Number: 0.1,
PatchVersion: 0,
Suffix: "-DEV",
Number: 1,
PatchVersion: 2,
Suffix: "",
}

func version(version float32, patchVersion int, suffix string) string {
if patchVersion > 0 {
return fmt.Sprintf("%.2f.%d%s", version, patchVersion, suffix)
return fmt.Sprintf("%.1f.%d%s", version, patchVersion, suffix)
}
return fmt.Sprintf("%.2f%s", version, suffix)
}
Expand Down

0 comments on commit 27f1223

Please sign in to comment.