MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Segments64

Method Segments64

pkg/util/constraint/version.go:353–357  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

351// for a version "1.2.3-beta", segments will return a slice of
352// 1, 2, 3.
353func (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.

Callers 3

TestVersionSegments64Function · 0.95
CompareMethod · 0.95
CoreMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestVersionSegments64Function · 0.76