From 1f95752b451cdf4355972f242583d517eca6a761 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sat, 14 Mar 2026 11:47:27 +0500 Subject: [PATCH] Add comments to jsonLinesParser for improved documentation --- parser/json_lines.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser/json_lines.go b/parser/json_lines.go index 2192a04..eca1f55 100644 --- a/parser/json_lines.go +++ b/parser/json_lines.go @@ -10,7 +10,9 @@ import ( // jsonLinesExtract defines the function signature for extracting IP addresses from a JSON Lines item. type jsonLinesExtract func(item json.RawMessage) (string, error) +// jsonLinesParser is a parser for JSON Lines data. type jsonLinesParser struct { + // extract is the function that extracts an IP address from a JSON Lines item. extract jsonLinesExtract }