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

Function ParseString

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

72//
73// A set line is of the form name1=value1,name2=value2
74func ParseString(s string) (map[string]interface{}, error) {
75 vals := map[string]interface{}{}
76 scanner := bytes.NewBufferString(s)
77 t := newParser(scanner, vals, true)
78 err := t.parse()
79 return vals, err
80}
81
82// ParseInto parses a strvals line and merges the result into dest.
83//

Callers

nothing calls this directly

Calls 2

newParserFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected