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