MCPcopy
hub / github.com/mitchellh/mapstructure / appendErrors

Function appendErrors

error.go:43–50  ·  view source on GitHub ↗
(errors []string, err error)

Source from the content-addressed store, hash-verified

41}
42
43func appendErrors(errors []string, err error) []string {
44 switch e := err.(type) {
45 case *Error:
46 return append(errors, e.Errors...)
47 default:
48 return append(errors, e.Error())
49 }
50}

Callers 4

decodeMapFromMapMethod · 0.85
decodeSliceMethod · 0.85
decodeArrayMethod · 0.85
decodeStructFromMapMethod · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…