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

Function ParseInto

pkg/util/strvals/strvals.go:86–90  ·  view source on GitHub ↗

ParseInto parses a strvals line and merges the result into dest. If the strval string has a key that exists in dest, it overwrites the dest version.

(s string, dest map[string]interface{})

Source from the content-addressed store, hash-verified

84// If the strval string has a key that exists in dest, it overwrites the
85// dest version.
86func ParseInto(s string, dest map[string]interface{}) error {
87 scanner := bytes.NewBufferString(s)
88 t := newParser(scanner, dest, false)
89 return t.parse()
90}
91
92// ParseFile parses a set line, but its final value is loaded from the file at the path specified by the original value.
93//

Callers 3

applyPipelineSetValueFunction · 0.92
applySetValuesFunction · 0.92
TestSetFlagFunction · 0.85

Calls 2

newParserFunction · 0.85
parseMethod · 0.80

Tested by 1

TestSetFlagFunction · 0.68