Documentation
¶
Index ¶
Constants ¶
View Source
const ( Major = VersionType("MAJOR") Minor = VersionType("MINOR") Patch = VersionType("PATCH") Prerelease = VersionType("PRERELEASE") )
Variables ¶
View Source
var ( ErrNotValidVersion = errors.New("Version provided is not a valid semver") ErrNotValidPrerelease = errors.New("Version provided is not a valid prerelease") )
Functions ¶
func FindNextVersion ¶
func FindNextVersion(t VersionType, v string) (string, error)
func GetVersionPriority ¶
func GetVersionPriority(v VersionType) int
Types ¶
type VersionType ¶
type VersionType string
func ParseVersionType ¶
func ParseVersionType(versionType string) (VersionType, error)
Click to show internal directories.
Click to hide internal directories.