ADDED:
* num-addrs subcommand, to get the number of hosts/addresses in a given
  prefix length
* get-net subcommand, to more easily get a single subnet from either the
  beginning or the end of a prefix. (MUCH FASTER than CIDR-splitting!)
This commit is contained in:
brent saner
2025-04-13 18:25:32 -04:00
parent c05f9c4d47
commit 860ad5842b
16 changed files with 334 additions and 78 deletions

9
go.mod
View File

@@ -8,7 +8,6 @@ require (
github.com/go-resty/resty/v2 v2.16.5
github.com/goccy/go-yaml v1.15.23
github.com/jessevdk/go-flags v1.6.1
github.com/projectdiscovery/mapcidr v1.1.34
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
golang.org/x/mod v0.24.0
r00t2.io/goutils v1.8.1
@@ -16,18 +15,12 @@ require (
)
require (
github.com/aymerick/douceur v0.2.0 // indirect
github.com/djherbis/times v1.6.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/projectdiscovery/blackrock v0.0.1 // indirect
github.com/projectdiscovery/utils v0.4.14 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/stretchr/testify v1.9.0 // indirect
golang.org/x/crypto v0.36.0 // indirect
golang.org/x/net v0.37.0 // indirect
golang.org/x/sync v0.12.0 // indirect