Skip to content

Commit b332557

Browse files
authored
chore: explicit json tags on struct (#304)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent a1b8944 commit b332557

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/state/state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ type DomainRecord struct {
4141
}
4242

4343
type DiscoveredAddress struct {
44-
Address string
45-
TldName string
46-
PolicyId string
44+
Address string `json:"address"`
45+
TldName string `json:"tld_name"`
46+
PolicyId string `json:"policy_id"`
4747
}
4848

4949
var globalState = &State{}

0 commit comments

Comments
 (0)