Add comments to jsonLinesParser for improved documentation

This commit is contained in:
2026-03-14 11:47:27 +05:00
parent c1e0d071a6
commit 1f95752b45

View File

@@ -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
}