MCPcopy Index your code
hub / github.com/coder/coder / String

Method String

scripts/releaser/version.go:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (v version) String() string {
34 if v.Pre != "" {
35 return fmt.Sprintf("v%d.%d.%d-%s", v.Major, v.Minor, v.Patch, v.Pre)
36 }
37 return fmt.Sprintf("v%d.%d.%d", v.Major, v.Minor, v.Patch)
38}
39
40// IsRC returns true when the version has a prerelease suffix starting
41// with "rc." (e.g. "rc.0", "rc.1").

Callers 15

runReleaseFunction · 0.95
main.goFile · 0.45
TestVersionStringFunction · 0.45
TestVersionIsRCFunction · 0.45
TestVersionRCNumberFunction · 0.45
TestVersionGreaterThanFunction · 0.45
TestVersionEqualFunction · 0.45
renderCalendarTableFunction · 0.45
updateCalendarFunction · 0.45
checkAndRecoverFunction · 0.45
formatDiffFunction · 0.45

Calls

no outgoing calls

Tested by 12

TestVersionStringFunction · 0.36
TestVersionIsRCFunction · 0.36
TestVersionRCNumberFunction · 0.36
TestVersionGreaterThanFunction · 0.36
TestVersionEqualFunction · 0.36
TestLogWriterFunction · 0.36
TestInjectionFunction · 0.36