func bump(p versionPart, v semver.Version) semver.Version { switch p { case major: v.Major++ v.Minor = 0 v.Patch = 0 case minor: v.Minor++ v.Patch = 0 case patch: v.Patch++ } return v }
func (MinorBump) Apply(v semver.Version) semver.Version { v.Minor++ v.Patch = 0 v.Pre = nil return v }