You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ARCHITECTURE.md and DEVELOPER_GUIDE.md describe APIs that no longer exist (sample test doesn't compile) #79
These are the docs a new contributor reads first. The DEVELOPER_GUIDE's example test doesn't compile, and it queries a real domain over the network, which contradicts the project's hermetic test approach. #64 covers the Pages landing site; this issue covers the developer docs.
Evidence
docs/ARCHITECTURE.md:43-57:
Describes flag.Parse()/flag.Arg(0); the code uses a FlagSet plus parseInterspersed.
Names validateDNSServer/validateDomain; these are now validate.DNSServer/validate.Domain.
§2.2 gives LoadWordlist(path) ([]string,int,error). The real signature is (path, domain) (entries, dup, skipped, err). It also omits ReadLines/Build/Normalize.
§2.3 shows ResolveTypes/ResolveDomainWithRetry taking dnsServer/verbose. They actually take *net.Resolver and Logf. The prose says resolution "outputs a boolean".
§2.6 references processedWords/foundSubdomains, which don't exist.
Both file trees omit internal/validate/, internal/dns/ratelimit.go, main_e2e_test.go, the TUI tests and tools/wordlist-gen_test.go. ARCHITECTURE never mentions -dL.
docs/DEVELOPER_GUIDE.md:150-185: the sample calls dns.ResolveDomain(ctx, domain, timeout, "8.8.8.8:53", false). The current signature is (ctx, *net.Resolver, domain, timeout, Logf).
Suggested approach
Rewrite the affected sections from the current code.
Regenerate the file trees (e.g. with tree -I _site).
Point the sample test at the hermetic test DNS server.
To prevent recurrence, keep signatures out of prose and link to pkg.go.dev or godoc instead.
Done when
Every identifier in both docs exists in the code, and the sample test compiles and passes when pasted into internal/dns.
Activity
docs(roadmap): drop #79 and #83 from Now; both shipped