semverutil

package
v0.0.0-...-af57c5d Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTE

func GTE(versionA, versionB string) bool

GTE returns true if versionA is greater than or equal to versionB.

Types

type FeatureReleases

type FeatureReleases struct {
	// MajorVersion is the major version in the format including the v. E.g. "v6"
	MajorVersion string
	// MinorVersions contains a slice of versions including the v and excluding the patch version. E.g. v2.5
	MinorVersions []string
}

FeatureReleases contains the combination of versions the feature was released in.

func (FeatureReleases) IsSupported

func (fr FeatureReleases) IsSupported(versionStr string) bool

IsSupported returns whether the version contains the feature. This is true if the version is greater than or equal to the major version it was released in or is greater than or equal to the list of minor releases it was included in.

Jump to

Keyboard shortcuts

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