Documentation
¶
Index ¶
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 numbers
func MustParse ¶
MustParse parses a version string and panics if it fails Use only in tests or when the version string is known to be valid
func Parse ¶
Parse parses a semantic version string into a Version struct Accepts formats: "1.2.3" or "v1.2.3"
func (Version) Bump ¶ added in v0.2.0
Bump returns a new version with the specified change type applied changeType should be one of: "patch", "minor", "major"
Click to show internal directories.
Click to hide internal directories.