PatchRelease returns the stable version with format "vx.y.z".
()
| 38 | |
| 39 | // PatchRelease returns the stable version with format "vx.y.z". |
| 40 | func (r *ReleaseVersion) PatchRelease() string { |
| 41 | if r.Version == nil { |
| 42 | return "<nil>" |
| 43 | } |
| 44 | |
| 45 | return fmt.Sprintf("v%d.%d.%d", r.Version.Major(), r.Version.Minor(), r.Version.Patch()) |
| 46 | } |