Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeType ¶
type ChangeType string
ChangeType represents the type of semantic version change
const ( // ChangeTypePatch represents a patch-level change (0.0.X) ChangeTypePatch ChangeType = "patch" // ChangeTypeMinor represents a minor-level change (0.X.0) ChangeTypeMinor ChangeType = "minor" // ChangeTypeMajor represents a major-level change (X.0.0) ChangeTypeMajor ChangeType = "major" )
func ParseChangeType ¶
func ParseChangeType(s string) (ChangeType, error)
ParseChangeType parses a string into a ChangeType
func (ChangeType) Priority ¶
func (ct ChangeType) Priority() int
Priority returns the numeric priority of the change type Higher values indicate more significant changes patch=1, minor=2, major=3
func (ChangeType) String ¶
func (ct ChangeType) String() string
String returns the string representation of the change type
func (ChangeType) Validate ¶
func (ct ChangeType) Validate() error
Validate checks if the change type is valid
Click to show internal directories.
Click to hide internal directories.