semver

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL