Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFeatures ¶
AllFeatures returns all features and their values. The values come from the registry in the context, the global registry, or the default value.
func DisableFeatures ¶
func DisableFeatures(features ...string)
DisableFeatures disables the given features on the global registry.
func EnableFeatures ¶
func EnableFeatures(features ...string)
EnableFeatures enables the given features on the global registry.
Types ¶
type Config ¶
type Config struct {
Features []string `name:"features" description:"Experimental features to activate"`
}
Config is the configuration for experimental features.
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature is an experimental feature that can be enabled or disabled.
func DefineFeature ¶
DefineFeature defines an experimental feature.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry of enabled experimental features.
func NewRegistry ¶
NewRegistry returns a new feature registry with the given features enabled.
func (*Registry) DisableFeatures ¶
DisableFeatures disables the given features.
func (*Registry) EnableFeatures ¶
EnableFeatures enables the given features.