mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
httpcache: write <path>.meta JSON sidecar after each successful download; load it on first Fetch so conditional GETs work after process restarts. Tests verify: download, sidecar written, same-cacher 304, fresh-cacher 304 (the last being the key case — no in-memory state, sidecar drives ETag). MaxMind integration test reads GeoIP.conf, downloads City+ASN, verifies fresh-cacher conditional GET skips re-download via sidecar ETag.
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%