MCPcopy
hub / github.com/helm/helm / ParseLiteral

Function ParseLiteral

pkg/strvals/literal_parser.go:29–35  ·  view source on GitHub ↗

ParseLiteral parses a set line interpreting the value as a literal string. A set line is of the form name1=value1

(s string)

Source from the content-addressed store, hash-verified

27//
28// A set line is of the form name1=value1
29func ParseLiteral(s string) (map[string]any, error) {
30 vals := map[string]any{}
31 scanner := bytes.NewBufferString(s)
32 t := newLiteralParser(scanner, vals)
33 err := t.parse()
34 return vals, err
35}
36
37// ParseLiteralInto parses a strvals line and merges the result into dest.
38// The value is interpreted as a literal string.

Callers 2

TestParseLiteralFunction · 0.85

Calls 2

newLiteralParserFunction · 0.85
parseMethod · 0.45

Tested by 2

TestParseLiteralFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…