IsRC returns true when the version has a prerelease suffix starting with "rc." (e.g. "rc.0", "rc.1").
()
| 40 | // IsRC returns true when the version has a prerelease suffix starting |
| 41 | // with "rc." (e.g. "rc.0", "rc.1"). |
| 42 | func (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. |
no outgoing calls