MCPcopy
hub / github.com/go-yaml/yaml / indicatedString

Method indicatedString

yaml.go:463–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461}
462
463func (n *Node) indicatedString() bool {
464 return n.Kind == ScalarNode &&
465 (shortTag(n.Tag) == strTag ||
466 (n.Tag == "" || n.Tag == "!") && n.Style&(SingleQuotedStyle|DoubleQuotedStyle|LiteralStyle|FoldedStyle) != 0)
467}
468
469// SetString is a convenience function that sets the node to a string value
470// and defines its style in a pleasant way depending on its content.

Callers 2

ShortTagMethod · 0.95
scalarMethod · 0.80

Calls 1

shortTagFunction · 0.85

Tested by

no test coverage detected