Documentation ¶
Index ¶
- Constants
- Variables
- func HandleMode(version string, modeString string, majorHandler VersionHandler, ...) (string, error)
- func Increase(version string, modeString string) (string, error)
- func IncreaseMajor(version string) (string, error)
- func IncreaseMinor(version string) (string, error)
- func IncreasePatch(version string) (string, error)
- func Release(version string) (string, error)
- func RemoveMinor(version string) (string, error)
- func RemovePatch(version string) (string, error)
- func Snapshot(version string) (string, error)
- func SuffixSnapshot(version string, suffix string) (string, error)
- func Verify(version string) error
- type Mode
- type VersionHandler
Constants ¶
View Source
const ( MajorMode = "major" MinorMode = "minor" PatchMode = "patch" )
Variables ¶
View Source
var ( ErrInvalidVersionFormat = errorx.NewType(errorx.CommonErrors, "ErrInvalidVersionFormat") ErrUnknownMode = errorx.NewType(errorx.CommonErrors, "ErrUnknownMode") )
Functions ¶
func HandleMode ¶
func HandleMode( version string, modeString string, majorHandler VersionHandler, minorHandler VersionHandler, patchHandler VersionHandler, ) (string, error)
func IncreaseMajor ¶
func IncreaseMinor ¶
func IncreasePatch ¶
func RemoveMinor ¶
func RemovePatch ¶
Types ¶
type VersionHandler ¶
Click to show internal directories.
Click to hide internal directories.