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

Method ConfigValue

common/env/env.go:724–730  ·  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

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

Callers 3

TestValidatorConfigValueFunction · 0.95
validator.goFile · 0.80
TestEnvFromConfigFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestValidatorConfigValueFunction · 0.76
TestEnvFromConfigFunction · 0.64