MCPcopy Create free account
hub / github.com/cloudtty/cloudtty / PatchRelease

Method PatchRelease

pkg/version/release.go:40–46  ·  view source on GitHub ↗

PatchRelease returns the stable version with format "vx.y.z".

()

Source from the content-addressed store, hash-verified

38
39// PatchRelease returns the stable version with format "vx.y.z".
40func (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}

Callers 1

TestReleaseVersionFunction · 0.80

Calls 1

PatchMethod · 0.65

Tested by 1

TestReleaseVersionFunction · 0.64