blob: f1610cf90fe153fa00010e456b21f982cdfc47e6 [file] [log] [blame] [view]
# Experiments
Experiments are defined in `internal/experiment.go`.
To enable experiments for local development, create a file containing
experiments in YAML format.
Set environment variable `GO_DISCOVERY_CONFIG_DYNAMIC` to that filename.
Example:
```
experiments:
- name: sidenav
rollout: 100
```
You can also run `devtools/cmd/create_experiment_config/main.go` to generate an
experiment.yaml file in the root of the repository. This YAML file will contain all
experiments defined in internal/experiment.go at the time of execution.
You can then set `GO_DISCOVERY_CONFIG_DYNAMIC` that filename.