From d9361059326c268ede3d581ca8a472a92dbff478 Mon Sep 17 00:00:00 2001 From: Chaz Lever Date: Wed, 13 Mar 2024 13:16:57 -0400 Subject: [PATCH] Update DnsSchema comment to adhere to Go coding guidelines --- iohandlers/schema.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iohandlers/schema.go b/iohandlers/schema.go index de86c50..7d37cfc 100644 --- a/iohandlers/schema.go +++ b/iohandlers/schema.go @@ -12,8 +12,9 @@ const ( DnsAdditional = iota ) -// JSON serialization only supports nullifying types that can accept nil. -// The ECS fields are pointers because they're nullable. +// A DnsSchema encapsulates all the fields parsed from a DNS packet. +// Since JSON serialization only supports nullifying types that can accept nil, +// the ECS fields are pointers because they're nullable. type DnsSchema struct { Timestamp int64 `json:"timestamp"` Sha256 string `json:"sha256"`