mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 20:58:00 +00:00
geoip.Databases now exposes a structured Lookup(ip) Info. Rendering moved up to the cmd — the library no longer writes to io.Writer. check-ip adds a Result struct and --format flag (pretty/json). Serve mode dispatches on ?format=json or Accept: application/json. Pretty is the default for both one-shot and HTTP.