Documentation
¶
Overview ¶
Package semver provides semantic versioning functionality for Shipyard. It implements parsing, comparison, and manipulation of semantic versions according to the Semantic Versioning specification (https://semver.org/).
Index ¶
- type Version
- func (v *Version) BumpMajor() *Version
- func (v *Version) BumpMinor() *Version
- func (v *Version) BumpPatch() *Version
- func (v *Version) Compare(other *Version) int
- func (v *Version) Copy() *Version
- func (v *Version) Equals(other *Version) bool
- func (v *Version) GreaterThan(other *Version) bool
- func (v *Version) LessThan(other *Version) bool
- func (v *Version) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version represents a semantic version with major, minor, and patch components
func (*Version) Compare ¶
Compare compares this version with another version. Returns:
-1 if this version is less than the other 0 if this version equals the other 1 if this version is greater than the other
func (*Version) GreaterThan ¶
GreaterThan returns true if this version is greater than the other version
Click to show internal directories.
Click to hide internal directories.