MCPcopy
hub / github.com/helm/helm / Parse

Function Parse

pkg/strvals/parser.go:55–61  ·  view source on GitHub ↗

Parse parses a set line. A set line is of the form name1=value1,name2=value2

(s string)

Source from the content-addressed store, hash-verified

53//
54// A set line is of the form name1=value1,name2=value2
55func Parse(s string) (map[string]any, error) {
56 vals := map[string]any{}
57 scanner := bytes.NewBufferString(s)
58 t := newParser(scanner, vals, false)
59 err := t.parse()
60 return vals, err
61}
62
63// ParseString parses a set line and forces a string value.
64//

Callers 4

TestParseSetFunction · 0.70
TestParseSetNestedLevelsFunction · 0.70
FuzzParseFunction · 0.70
ToYAMLFunction · 0.70

Calls 2

newParserFunction · 0.85
parseMethod · 0.45

Tested by 3

TestParseSetFunction · 0.56
TestParseSetNestedLevelsFunction · 0.56
FuzzParseFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…