All returns a map of all known features flags and whether they're enabled.
()
| 76 | |
| 77 | // All returns a map of all known features flags and whether they're enabled. |
| 78 | func All() map[string]bool { |
| 79 | m := make(map[string]bool, len(features)) |
| 80 | for name, feat := range features { |
| 81 | m[name] = feat.Enabled() |
| 82 | } |
| 83 | return m |
| 84 | } |