mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 20:58:00 +00:00
Extract the file/git/httpcache mode switch into newSource and the Group wiring into newBlocklists. main becomes flag parsing + exit code logic only; run owns ctx and the check. Helpers (loadCohort, cacheDir, splitCSV, loadWhitelist) are small and single-purpose. Still exercises dataset.Group + background refresh, gitshallow, and httpcache as before.
12 lines
340 B
Modula-2
12 lines
340 B
Modula-2
module github.com/therootcompany/golib/cmd/check-ip
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/therootcompany/golib/net/dataset v0.0.0
|
|
github.com/therootcompany/golib/net/geoip v0.0.0
|
|
github.com/therootcompany/golib/net/gitshallow v0.0.0
|
|
github.com/therootcompany/golib/net/httpcache v0.0.0
|
|
github.com/therootcompany/golib/net/ipcohort v0.0.0
|
|
)
|