From 7d63867f365163f149db5d768c71f518f9eaf711 Mon Sep 17 00:00:00 2001 From: s Date: Fri, 7 Nov 2025 11:50:47 -0500 Subject: refactor: extract json output formatting to utils.PrintJSON and add colorized json output with new dns tld command --- internal/models/dns.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 internal/models/dns.go (limited to 'internal/models') diff --git a/internal/models/dns.go b/internal/models/dns.go new file mode 100644 index 0000000..b08d8ba --- /dev/null +++ b/internal/models/dns.go @@ -0,0 +1,12 @@ +package models + +type DNSTLDParams struct { + Term string +} + +type DomainResult struct { + Domain string `json:"domain"` + Status string `json:"status"` + Title string `json:"title,omitempty"` + Tech []string `json:"tech,omitempty"` +} -- cgit v1.2.3