types

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL