IsAddon returns true if the feature is an addon feature.
()
| 317 | |
| 318 | // IsAddon returns true if the feature is an addon feature. |
| 319 | func (n FeatureName) IsAddonFeature() bool { |
| 320 | features := []FeatureName{} |
| 321 | for addon := range AddonsMap { |
| 322 | features = append(features, addon.Features()...) |
| 323 | } |
| 324 | return slices.Contains(features, n) |
| 325 | } |
| 326 | |
| 327 | // FeatureSet represents a grouping of features. Rather than manually |
| 328 | // assigning features al-la-carte when making a license, a set can be specified. |