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

Method IsString

policy/yaml.go:62–64  ·  view source on GitHub ↗

IsString returns true if the YAML node is a string.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

60
61// IsString returns true if the YAML node is a string.
62func (YAMLHelper) IsString(node *yaml.Node) bool {
63 return isTypeTag(node, yamlString)
64}
65
66// IsBool returns true if the YAML node is a boolean.
67func (YAMLHelper) IsBool(node *yaml.Node) bool {

Callers 1

TestYAMLHelperFunction · 0.95

Calls 1

isTypeTagFunction · 0.85

Tested by 1

TestYAMLHelperFunction · 0.76