Skip to content

Commit

Permalink
Update DnsSchema comment to adhere to Go coding guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
chazlever committed Mar 13, 2024
1 parent 7115c4c commit d936105
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iohandlers/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit d936105

Please sign in to comment.