Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PreRelease ¶
type PreRelease string
func (*PreRelease) Slice ¶
func (p *PreRelease) Slice() []string
type Version ¶
type Version struct { Major int64 Minor int64 Patch int64 PreRelease PreRelease Metadata string }
func NewVersion ¶
func (*Version) BumpMajor ¶
func (v *Version) BumpMajor()
BumpMajor increments the Major field by 1 and resets all other fields to their default values
func (*Version) BumpMinor ¶
func (v *Version) BumpMinor()
BumpMinor increments the Minor field by 1 and resets all other fields to their default values
func (*Version) BumpPatch ¶
func (v *Version) BumpPatch()
BumpPatch increments the Patch field by 1 and resets all other fields to their default values
Click to show internal directories.
Click to hide internal directories.