Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemverConverter ¶
type SemverConverter struct {
// contains filtered or unexported fields
}
func NewSemverConverter ¶
func NewSemverConverter(logger logger.Logger) *SemverConverter
func (SemverConverter) ToValidSemver ¶
func (s SemverConverter) ToValidSemver(input string) (semver.Version, error)
ToValidSemver attempts to return the input as valid semver. If the input fails to parse as semver, it appends .0 or .0.0 to the input and retries If this is still not valid semver, it returns an error
Click to show internal directories.
Click to hide internal directories.