issues
search
lc
/
gau
Fetch known URLs from AlienVault's Open Threat Exchange, the Wayback Machine, and Common Crawl.
MIT License
3.9k
stars
439
forks
source link
Refactor to dry up code
#100
Closed
lavafroth
closed
1 year ago
lavafroth
commented
1 year ago
Changes
Use switch statement on
interface{}
s instead of reflection to figure out types (bumped go version to 1.20)
Avoid
goto
statements when possible
Use mapset library for blocklists and looking up previously seen URLs
Lazily construct structures when errors are involved
Set a log level when parsing configs to avoid checking the verbose flag for every logrus log invocation
Scope loop variables to respective blocks
Minor improvements to conditional statements that employ string formatting
lc
commented
1 year ago
Thanks for the PR! Looks great
Changes
interface{}
s instead of reflection to figure out types (bumped go version to 1.20)goto
statements when possible