mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Add dash separator to version suffix
This commit is contained in:
parent
1b27073491
commit
7877eec67d
@ -38,7 +38,11 @@ type Version struct {
|
||||
}
|
||||
|
||||
func (v Version) String() string {
|
||||
return fmt.Sprintf("%d.%d.%d%s", v.Major, v.Minor, v.Patch, v.Suffix)
|
||||
if v.Suffix != "" {
|
||||
return fmt.Sprintf("%d.%d.%d-%s", v.Major, v.Minor, v.Patch, v.Suffix)
|
||||
} else {
|
||||
return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
|
||||
}
|
||||
}
|
||||
|
||||
func BuildVersionString() string {
|
||||
|
Loading…
Reference in New Issue
Block a user