Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bump ¶
func Bump(version string, releaseType ReleaseType) (string, error)
Bump bumps a version component up by one
func FulfillsConstraint ¶
FulfillsConstraint checks if the given version fulfills the constraint
func IsValidSemver ¶
IsValidSemver checks that the given input is a valid semver version
Types ¶
type ReleaseType ¶
type ReleaseType int32
const ( ReleaseNone ReleaseType = 0 ReleasePatch ReleaseType = 1 ReleaseMinor ReleaseType = 2 ReleaseMajor ReleaseType = 3 )
func HighestReleaseType ¶
func HighestReleaseType(numbers []ReleaseType) ReleaseType
Click to show internal directories.
Click to hide internal directories.