Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionTypeMajor = iota VersionTypeMinor VersionTypePatch )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct {
Major, Minor, Patch int
// contains filtered or unexported fields
}
func Parse ¶
Parse parses passed string as a semantic version if parsing will be failed, its error is stored to *Version.Error()
func (*Version) Bump ¶
func (v *Version) Bump(typ VersionType)
func (*Version) GreaterThan ¶
type VersionType ¶
type VersionType int
Click to show internal directories.
Click to hide internal directories.