MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Parse

Function Parse

pkg/util/strvals/strvals.go:63–69  ·  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

61//
62// A set line is of the form name1=value1,name2=value2
63func Parse(s string) (map[string]interface{}, error) {
64 vals := map[string]interface{}{}
65 scanner := bytes.NewBufferString(s)
66 t := newParser(scanner, vals, false)
67 err := t.parse()
68 return vals, err
69}
70
71// ParseString parses a set line and forces a string value.
72//

Callers 1

ToYAMLFunction · 0.70

Calls 2

newParserFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected