MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ConfigValue

Method ConfigValue

common/env/env.go:726–732  ·  view source on GitHub ↗

ConfigValue retrieves the value associated with the config key name, if one exists.

(name string)

Source from the content-addressed store, hash-verified

724
725// ConfigValue retrieves the value associated with the config key name, if one exists.
726func (v *Validator) ConfigValue(name string) (any, bool) {
727 if v == nil {
728 return nil, false
729 }
730 value, found := v.Config[name]
731 return value, found
732}
733
734// NewFeature creates a new feature flag with a boolean enablement flag.
735func NewFeature(name string, enabled bool) *Feature {

Callers 4

TestValidatorConfigValueFunction · 0.95
validatorIntConfigFunction · 0.80
TestEnvFromConfigFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestValidatorConfigValueFunction · 0.76
TestEnvFromConfigFunction · 0.64