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

Method IsBool

policy/yaml.go:67–69  ·  view source on GitHub ↗

IsBool returns true if the YAML node is a boolean.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

65
66// IsBool returns true if the YAML node is a boolean.
67func (YAMLHelper) IsBool(node *yaml.Node) bool {
68 return isTypeTag(node, yamlBool)
69}
70
71// IsNull returns true if the YAML node is a null.
72func (YAMLHelper) IsNull(node *yaml.Node) bool {

Callers 1

TestYAMLHelperFunction · 0.95

Calls 1

isTypeTagFunction · 0.85

Tested by 1

TestYAMLHelperFunction · 0.76