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

Method Prerelease

pkg/util/constraint/version.go:331–333  ·  view source on GitHub ↗

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".

()

Source from the content-addressed store, hash-verified

329// version (but before any metadata). For example, with "1.2.3-beta",
330// the prerelease information is "beta".
331func (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//

Callers 4

TestVersionPrereleaseFunction · 0.95
CompareMethod · 0.95
prereleaseCheckFunction · 0.80
constraintPessimisticFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestVersionPrereleaseFunction · 0.76