Documentation ¶ Index ¶ Variables func Command() *cobra.Command type Increment func ParseIncrement(inc string) (Increment, error) type Version func ParseVersion(input string) (Version, error) func (v Version) String() string Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidIncrement = errors.New("invalid increment") Functions ¶ func Command ¶ func Command() *cobra.Command Types ¶ type Increment ¶ type Increment string const ( IncrementPatch Increment = "patch" IncrementMinor Increment = "minor" IncrementMajor Increment = "major" ) func ParseIncrement ¶ func ParseIncrement(inc string) (Increment, error) type Version ¶ type Version struct { // contains filtered or unexported fields } func ParseVersion ¶ func ParseVersion(input string) (Version, error) func (Version) String ¶ func (v Version) String() string Source Files ¶ View all Source files model.go semver.go Click to show internal directories. Click to hide internal directories.