MCPcopy
hub / github.com/helm/helm / ParseString

Function ParseString

pkg/strvals/parser.go:66–72  ·  view source on GitHub ↗

ParseString parses a set line and forces a string value. A set line is of the form name1=value1,name2=value2

(s string)

Source from the content-addressed store, hash-verified

64//
65// A set line is of the form name1=value1,name2=value2
66func ParseString(s string) (map[string]any, error) {
67 vals := map[string]any{}
68 scanner := bytes.NewBufferString(s)
69 t := newParser(scanner, vals, true)
70 err := t.parse()
71 return vals, err
72}
73
74// ParseInto parses a strvals line and merges the result into dest.
75//

Callers 1

TestParseSetFunction · 0.85

Calls 2

newParserFunction · 0.85
parseMethod · 0.45

Tested by 1

TestParseSetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…