MCPcopy Create free account
hub / github.com/github/gh-aw / getFeatureValueCaseInsensitive

Function getFeatureValueCaseInsensitive

pkg/workflow/sandbox_validation.go:175–185  ·  view source on GitHub ↗
(features map[string]any, flagName string)

Source from the content-addressed store, hash-verified

173}
174
175func 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected