YAMLOrJSONDecoder attempts to decode a stream of JSON documents or YAML documents by sniffing for a leading { character.
| 174 | // YAMLOrJSONDecoder attempts to decode a stream of JSON documents or |
| 175 | // YAML documents by sniffing for a leading { character. |
| 176 | type YAMLOrJSONDecoder struct { |
| 177 | r io.Reader |
| 178 | bufferSize int |
| 179 | |
| 180 | decoder decoder |
| 181 | rawData []byte |
| 182 | } |
| 183 | |
| 184 | type JSONSyntaxError struct { |
| 185 | Line int |
nothing calls this directly
no outgoing calls
no test coverage detected