mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
New package providing a typed Set/View/Fetcher abstraction over atomic.Pointer[T] for periodically refreshed in-memory datasets. Loaders take ctx and return (*T, error) so callers can cancel slow refreshes; close-on-swap hooks let typed views release resources deterministically. Includes Tick (with onError callback, no stderr side-effects) and a PollFiles fetcher for local-file sources.
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%