master #2

Merged
sam merged 3 commits from :master into master 2022-06-22 11:55:39 +00:00
Collaborator

I did a few things here but mainly

  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.

I did a few things here but mainly 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.
grumbulon added 3 commits 2022-06-22 05:30:58 +00:00
sam merged commit 9b979667d6 into master 2022-06-22 11:55:38 +00:00
sam referenced this pull request from a commit 2022-06-22 11:55:39 +00:00
Sign in to join this conversation.
No description provided.