Help us shape the future of Go! Take the 2026 Go Developer Survey

featureflag

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DynamicPlugins   = newFeatureFlag("EXPERIMENTAL_DYNAMIC_PLUGINS", false)
	CertRotation     = newFeatureFlag("CERT_ROTATION", false)
	HighAvailability = newFeatureFlag("EXPERIMENTAL_HIGH_AVAILABILITY", false)
)

Feature flags are used to enable/disable experimental features. They are activated via environment variables, starting with "RATIFY_", ex: RATIFY_EXPERIMENTAL_DYNAMIC_PLUGINS=1 Remember to capture changes in the usage guide and release notes.

Functions

func InitFeatureFlagsFromEnv

func InitFeatureFlagsFromEnv()

Types

type FeatureFlag

type FeatureFlag struct {
	Name    string
	Enabled bool
}

Jump to

Keyboard shortcuts

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