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

Function Unmarshal

pkg/util/yamlutil/yaml.go:37–40  ·  view source on GitHub ↗

Unmarshal decodes the given byte into an object and returns a prettified string

(data []byte, out interface{})

Source from the content-addressed store, hash-verified

35
36// Unmarshal decodes the given byte into an object and returns a prettified string
37func Unmarshal(data []byte, out interface{}) error {
38 err := yaml.Unmarshal(data, out)
39 return prettifyError(data, err)
40}
41
42func prettifyError(data []byte, err error) error {
43 // check if type error

Callers 15

returnConfigMethod · 0.92
GetConfigValueFunction · 0.92
applySetValuesFunction · 0.92
LoadMethod · 0.92
getProfilesFunction · 0.92
CloneMethod · 0.92
CloneMethod · 0.92
ParseMethod · 0.92
LoadRawMethod · 0.92
copyRawFunction · 0.92
ResolveImportsFunction · 0.92
ResolveExpressionsFunction · 0.92

Calls 1

prettifyErrorFunction · 0.85

Tested by

no test coverage detected