refactor: logparser v5 funcs

This commit is contained in:
Inanc Gumus
2019-08-29 16:08:46 +03:00
parent d28c6d54d2
commit 661e018258
10 changed files with 48 additions and 53 deletions

View File

@ -22,7 +22,7 @@ func NewJSONLog(r io.Reader) *JSON {
return &JSON{reader: r}
}
// Each yields records from a json reader.
// Each sends the records from a reader to upstream.
func (j *JSON) Each(yield func(Record) error) error {
defer readClose(j.reader)