grumbulon
9b979667d6
1. I made JSON print indented instead of inline 2. I created a util package and moved `ReverseDNS` and `ResolveHTTPS` there 3. I created a new struct called Answers where all variables for the output live now, and adjusted the response struct to have the Answers struct in it. This lets us reuse the struct more instead of having variables floating around, lets us make the response more custom, offers more understandable code reuse, and makes things (I think) more readable. Aside: you will notice the struct has little json defs. This is because struct values encode as JSON objects and can preserve the output name this way Most of this just makes expanding on awl easier in the future. Co-authored-by: grumbulon <grumbulon@dismail.de> Reviewed-on: sam/awl#2 Co-authored-by: grumbulon <grumbulon@grumbulon.xyz> Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
22 lines
678 B
Modula-2
22 lines
678 B
Modula-2
module git.froth.zone/sam/awl
|
|
|
|
go 1.18
|
|
|
|
require (
|
|
github.com/c-robinson/iplib v1.0.3
|
|
github.com/miekg/dns v1.1.50
|
|
github.com/urfave/cli/v2 v2.10.2
|
|
golang.org/x/net v0.0.0-20220621193019-9d032be2e588
|
|
)
|
|
|
|
require (
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
|
golang.org/x/mod v0.4.2 // indirect
|
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
|
|
golang.org/x/text v0.3.7 // indirect
|
|
golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2 // indirect
|
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
|
)
|