Documentation
¶
Index ¶
Constants ¶
View Source
const ( None = Type(0) Patch = Type(1) Minor = Type(2) Major = Type(3) )
View Source
const ( NoneName = Name("none") PatchName = Name("patch") MinorName = Name("minor") MajorName = Name("major") )
Variables ¶
View Source
var ErrNameNotValid = errors.New("name introduced is not valid")
Functions ¶
Types ¶
type Type ¶
type Type int
func NameToType ¶
NameToType returns the bump type from a string. The string should be from a constant constant of bump.Name or it will return bump.None.
func (Type) Cap ¶
Cap returns the current bump if it is smaller or equal than another one, and second otherwise. e.g Major.Cap(Minor) returns Minor, and Patch.Cap(Minor) returns Patch.
Click to show internal directories.
Click to hide internal directories.