ShowAssigned returns the features enabled or disabled by Set and SetFromMap in the Gate contained in ctx.
(ctx context.Context)
| 157 | // ShowAssigned returns the features enabled or disabled by Set and SetFromMap |
| 158 | // in the Gate contained in ctx. |
| 159 | func ShowAssigned(ctx context.Context) string { |
| 160 | featuresAssigned := "" |
| 161 | if gate, ok := ctx.Value(contextKey{}).(interface { |
| 162 | Gate |
| 163 | String() string |
| 164 | }); ok { |
| 165 | featuresAssigned = gate.String() |
| 166 | } |
| 167 | return featuresAssigned |
| 168 | } |