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

Function ParseIntoFile

pkg/util/strvals/strvals.go:118–122  ·  view source on GitHub ↗

ParseIntoFile parses a filevals line and merges the result into dest. This method always returns a string as the value.

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

Source from the content-addressed store, hash-verified

116//
117// This method always returns a string as the value.
118func ParseIntoFile(s string, dest map[string]interface{}, reader RunesValueReader) error {
119 scanner := bytes.NewBufferString(s)
120 t := newFileParser(scanner, dest, reader)
121 return t.parse()
122}
123
124// RunesValueReader is a function that takes the given value (a slice of runes)
125// and returns the parsed value

Callers

nothing calls this directly

Calls 2

newFileParserFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected