semver

package
v2.0.0-...-1f73bd4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version is used to resolve component versions.

func New

func New(pattern string) Version

New creates a new semantic version.

func (Version) AllowWildcards

func (v Version) AllowWildcards() bool

AllowWildcards checks if version patterns with wildcards are supported by the version.

func (Version) Match

func (v Version) Match(version string) bool

Match checks if a version matches the current version pattern.

func (Version) Resolve

func (v Version) Resolve(versions []string) string

Resolve resolves to the highest compatible version. An empty string is returned when the no version is resolved.

Jump to

Keyboard shortcuts

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