Documentation ¶
Overview ¶
Package experiments provides a global "Feature Flag" facility for circuit-breaking pre-GA code.
The intent is to provide a means of selecting a flavor of executable at boot; not to toggle experiments on and off. Once settings are loaded from the environment variable experiments.Env, they are fixed.
Index ¶
Constants ¶
const Env = "YTTEXPERIMENTS"
Env is the OS environment variable with comma-separated names of experiments to enable.
Variables ¶
This section is empty.
Functions ¶
func GetEnabled ¶
func GetEnabled() []string
GetEnabled reports the name of all enabled experiments.
An experiment is enabled by including its name in the OS environment variable named Env.
func ResetForTesting ¶
func ResetForTesting()
ResetForTesting clears the experiment flag settings, forcing reload from the Env on next use.
This is for testing purposes only.
Types ¶
This section is empty.