Open KernelPryanic opened 1 year ago
Support for io.Reader is already in the works. Since it requires extensive changes to the API and the algorithm I decided to include it in later feature bumps above v2.0.0.
io.Reader
support for ScanOne
and ValidateOne
will be impossible to implement. Instead something like this will be necessary:
func ScanStream(io.Reader, onValue func(*IteratorReader), onTerminator func(*IteratorReader)) ErrorReader
func ValidateStream(io.Reader) ErrorReader
Scan
requires loading big JSON files into memory. In situations where memory is limited and/or the JSON files are too big reading fromio.Reader
would be required.