Segments64 returns the numeric segments of the version as a slice of int64s. This excludes any metadata or pre-release information. For example, for a version "1.2.3-beta", segments will return a slice of 1, 2, 3.
()
| 351 | // for a version "1.2.3-beta", segments will return a slice of |
| 352 | // 1, 2, 3. |
| 353 | func (v *Version) Segments64() []int64 { |
| 354 | result := make([]int64, len(v.segments)) |
| 355 | copy(result, v.segments) |
| 356 | return result |
| 357 | } |
| 358 | |
| 359 | // String returns the full version string included pre-release |
| 360 | // and metadata information. |
no outgoing calls