Documentation ¶
Overview ¶
Package version provides utility types and functions to work with SemVer versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildMetadata ¶
type BuildMetadata []string
BuildMetadata is a structured representation of build metadata in a SemVer version string (the part after '+' in "+vmware.1-...").
func ParseBuildMetadata ¶
func ParseBuildMetadata(s string) BuildMetadata
ParseBuildMetadata creates BuildMetadata from a SemVer version string representation of build metadata (the part after '+' in "+vmware.1-...").
func (BuildMetadata) LessThan ¶
func (bm BuildMetadata) LessThan(other BuildMetadata) bool
LessThan compares BuildMetadata to other BuildMetadata. Returns true if this BuildMetadata represents a less recent build based on numeric (if possible) and alphanumeric comparison of build metadata components.
type Compatibility ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version is a structured representation of a SemVer version string (including build metadata).
func ParseSemantic ¶
ParseSemantic constructs a structured representation of a semantic version string including build metadata, producing comparable structural representation.