The Marshaler interface may be implemented by types to customize their behavior when being marshaled into a YAML document. The returned value is marshaled in place of the original value implementing Marshaler. If an error is returned by MarshalYAML, the marshaling procedure stops and returns with t
| 48 | // If an error is returned by MarshalYAML, the marshaling procedure stops |
| 49 | // and returns with the provided error. |
| 50 | type Marshaler interface { |
| 51 | MarshalYAML() (interface{}, error) |
| 52 | } |
| 53 | |
| 54 | // Unmarshal decodes the first document found within the in byte slice |
| 55 | // and assigns decoded values into the out value. |