YAMLToJSONDecoder decodes YAML documents from an io.Reader by separating individual documents. It first converts the YAML body to JSON, then unmarshals the JSON.
| 43 | // separating individual documents. It first converts the YAML |
| 44 | // body to JSON, then unmarshals the JSON. |
| 45 | type YAMLToJSONDecoder struct { |
| 46 | reader Reader |
| 47 | } |
| 48 | |
| 49 | // NewYAMLToJSONDecoder decodes YAML documents from the provided |
| 50 | // stream in chunks by converting each document (as defined by |
nothing calls this directly
no outgoing calls
no test coverage detected