Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.