Commit Graph

14 Commits

Author SHA1 Message Date
Sam Therapy bf06f7a3aa
I am still somehow getting paid to do this
continuous-integration/drone/push Build is passing Details
2022-06-23 23:12:48 +02:00
Renovate Bot 027514b4cc Update golang.org/x/net digest to 263ec57 2022-06-23 07:29:27 +00:00
grumbulon 589b13320a Cannot defined things twice in same package (#5)
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-06-23 07:29:06 +00:00
Sam Therapy 160c89ca1e
I got paid to write this 2022-06-22 22:59:17 +02:00
Renovate Bot ff78fa1e50 Add renovate.json 2022-06-22 11:55:52 +00:00
grumbulon 9b979667d6 Make everything more readable (#2)
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: #2
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-06-22 11:55:38 +00:00
Sam Therapy 50d7b9dc2a
Rewrite in Go :^)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-21 22:54:50 +02:00
Sam Therapy 8c11828529
lint, again
continuous-integration/drone/push Build is passing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 16:04:42 +02:00
Sam Therapy 19aac80ce7
Allow query to not be case sensitive
continuous-integration/drone/push Build is failing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 16:03:54 +02:00
Sam Therapy a29f69fce7
fix lint
continuous-integration/drone/push Build is passing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 15:52:35 +02:00
Sam Therapy 2b7cd9ea73
Untested: add wild domain parsing
continuous-integration/drone/push Build is failing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 15:51:14 +02:00
Sam Therapy 9415622fb9
Fix naming
continuous-integration/drone/push Build is passing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:17:15 +02:00
Sam Therapy 7a7d4ad325
Change container distro
continuous-integration/drone/push Build is passing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:14:42 +02:00
Sam Therapy 6f4ae7de65
Initial commit
continuous-integration/drone Build is failing Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:11:46 +02:00