(features map[string]any, flagName string)
| 173 | } |
| 174 | |
| 175 | func getFeatureValueCaseInsensitive(features map[string]any, flagName string) (any, bool) { |
| 176 | if value, exists := features[flagName]; exists { |
| 177 | return value, true |
| 178 | } |
| 179 | for key, value := range features { |
| 180 | if strings.EqualFold(key, flagName) { |
| 181 | return value, true |
| 182 | } |
| 183 | } |
| 184 | return nil, false |
| 185 | } |
no outgoing calls
no test coverage detected