3 // ID represents an experimental feature.
5 // The global vars defined on this package should be used as ID values.
6 // This interface is purposely not implement-able outside of this package
7 // so that we can rely on the Go compiler to enforce all experiment references.
13 unexported() // So the ID can't be implemented externally.
16 // basicID implements ID.
23 func newBasicID(flag, env string, def bool) ID {
31 func (id *basicID) Env() string { return id.EnvValue }
32 func (id *basicID) Flag() string { return id.FlagValue }
33 func (id *basicID) Default() bool { return id.DefaultValue }
34 func (id *basicID) unexported() {}