Documentation
¶
Overview ¶
Package semverlike provides functionality to parse and compare version strings that are similar to semantic versioning, but with more flexibility. It is currently used to parse go mod versions to determine if a patch version exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
Components are individual components of each semver segment.
func (*Components) Cmp ¶
func (components *Components) Cmp(b Components) int
type Version ¶
type Version struct {
LeadingV bool
Components Components
Build string
Original string
}
Version is a version that is _like_ a version as defined by the Semantic Version specification, except with potentially unlimited numeric components and a leading "v"
func ParseSemverLikeVersion ¶
Click to show internal directories.
Click to hide internal directories.