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

Function IsRCVersion

buildinfo/buildinfo.go:92–94  ·  view source on GitHub ↗

IsRCVersion returns true if the version has a release candidate pre-release tag, e.g. "v2.31.0-rc.0".

(v string)

Source from the content-addressed store, hash-verified

90// IsRCVersion returns true if the version has a release candidate
91// pre-release tag, e.g. "v2.31.0-rc.0".
92func IsRCVersion(v string) bool {
93 return strings.Contains(v, "-rc.")
94}
95
96// IsDev returns true if this is a development build.
97// CI builds are also considered development builds.

Callers 2

TestIsRCVersionFunction · 0.92
serverVersionMessageFunction · 0.92

Calls 1

ContainsMethod · 0.45

Tested by 1

TestIsRCVersionFunction · 0.74