Prerelease returns any prerelease data that is part of the version, or blank if there is no prerelease data. Prerelease information is anything that comes after the "-" in the version (but before any metadata). For example, with "1.2.3-beta", the prerelease information is "beta".
()
| 329 | // version (but before any metadata). For example, with "1.2.3-beta", |
| 330 | // the prerelease information is "beta". |
| 331 | func (v *Version) Prerelease() string { |
| 332 | return v.pre |
| 333 | } |
| 334 | |
| 335 | // Segments returns the numeric segments of the version as a slice of ints. |
| 336 | // |
no outgoing calls