Documentation ¶
Index ¶
- type SemanticVersion
- func (ver *SemanticVersion) BumpMajor() error
- func (ver *SemanticVersion) BumpMinor() error
- func (ver *SemanticVersion) BumpPatch() error
- func (ver *SemanticVersion) GetMostRecentTag() (err error)
- func (ver *SemanticVersion) Major() VersionNumber
- func (ver *SemanticVersion) Minor() VersionNumber
- func (ver *SemanticVersion) Parse(v string) (err error)
- func (ver *SemanticVersion) ParseP(v *string) (err error)
- func (ver *SemanticVersion) Patch() VersionNumber
- func (ver *SemanticVersion) String() string
- func (ver *SemanticVersion) UpdateTag() error
- type VersionNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemanticVersion ¶
type SemanticVersion struct {
// contains filtered or unexported fields
}
SemanticVersion - A semantic version (v0.0.0) with methods
func (*SemanticVersion) BumpMajor ¶
func (ver *SemanticVersion) BumpMajor() error
BumpMajor - bump version part
func (*SemanticVersion) BumpMinor ¶
func (ver *SemanticVersion) BumpMinor() error
BumpMinor - bump version part (with rollover to major)
func (*SemanticVersion) BumpPatch ¶
func (ver *SemanticVersion) BumpPatch() error
BumpPatch - bump version part (with rollover to minor)
func (*SemanticVersion) GetMostRecentTag ¶
func (ver *SemanticVersion) GetMostRecentTag() (err error)
GetMostRecentTag - Query the local git repo for the most recent tag
func (*SemanticVersion) Major ¶
func (ver *SemanticVersion) Major() VersionNumber
func (*SemanticVersion) Minor ¶
func (ver *SemanticVersion) Minor() VersionNumber
func (*SemanticVersion) Parse ¶
func (ver *SemanticVersion) Parse(v string) (err error)
Parse - Parse a string into the semantic version numeric form
func (*SemanticVersion) ParseP ¶
func (ver *SemanticVersion) ParseP(v *string) (err error)
ParseP - Parse a string into the semantic version numeric form
func (*SemanticVersion) Patch ¶
func (ver *SemanticVersion) Patch() VersionNumber
func (*SemanticVersion) String ¶
func (ver *SemanticVersion) String() string
String - return a semantic version string.
func (*SemanticVersion) UpdateTag ¶
func (ver *SemanticVersion) UpdateTag() error
UpdateTag - update the current local git repo (current directory) with new tag.
type VersionNumber ¶
type VersionNumber uint8
VersionNumber - a 8-bit unsigned version number
func (*VersionNumber) Bump ¶
func (ver *VersionNumber) Bump() error
func (*VersionNumber) Put ¶
func (ver *VersionNumber) Put(s string) error
Put - Convert string to uint (VersionNumber) and store
func (*VersionNumber) PutP ¶
func (ver *VersionNumber) PutP(s *string) error
PutP - Convert string to uint (VersionNumber) and store
Source Files ¶
- GetMostRecentTag.go
- SemanticVersion.BumpMajor.go
- SemanticVersion.BumpMinor.go
- SemanticVersion.BumpPatch.go
- SemanticVersion.OpenRepo.go
- SemanticVersion.Parse.go
- SemanticVersion.ParseP.go
- SemanticVersion.String.go
- SemanticVersion.UpdateTag.go
- SemanticVersion.go
- VersionNumber.Bump.go
- VersionNumber.Put.go
- VersionNumber.PutP.go
- VersionNumber.go
- constants.go