mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
Set handles both single-fetcher (one git repo) and multi-fetcher (GeoLite2 City + ASN) cases uniformly. Any fetcher reporting an update triggers a view reload. This replaces the per-caller FetcherFunc wrapper that combined the two MaxMind cachers and the ad-hoc atomic.Pointer + ticker goroutine in cmd/check-ip — geoip now rides on the same Set/View/Load/Tick surface as the blocklists.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%