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

Method IsRC

scripts/releaser/version.go:42–44  ·  view source on GitHub ↗

IsRC returns true when the version has a prerelease suffix starting with "rc." (e.g. "rc.0", "rc.1").

()

Source from the content-addressed store, hash-verified

40// IsRC returns true when the version has a prerelease suffix starting
41// with "rc." (e.g. "rc.0", "rc.1").
42func (v version) IsRC() bool {
43 return strings.HasPrefix(v.Pre, "rc.")
44}
45
46// rcNumber returns the numeric RC identifier (e.g. 0 for "rc.0").
47// It returns -1 when the version is not an RC.

Callers 4

runReleaseFunction · 0.95
rcNumberMethod · 0.95
GreaterThanMethod · 0.95
TestVersionIsRCFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestVersionIsRCFunction · 0.64