v1.0.0 #1

Merged
kor-elf merged 32 commits from develop into main 2026-03-15 20:36:00 +05:00
Showing only changes of commit 9cda5799e1 - Show all commits

View File

@@ -18,7 +18,9 @@ func main() {
if err != nil {
panic(err)
}
config := blocklist.NewConfig(0)
// limit 0 - no limit
limit := uint(0)
config := blocklist.NewConfig(limit)
ips, err := blocklist.Get(url, pars, config)
if err != nil {
panic(err)
@@ -33,7 +35,9 @@ func main() {
if err != nil {
panic(err)
}
config := blocklist.NewConfigWithValidator(0, &parser.IPRangeValidator{})
// limit 0 - no limit
limit := uint(0)
config := blocklist.NewConfigWithValidator(limit, &parser.IPRangeValidator{})
ips, err := blocklist.Get(url, pars, config)
if err != nil {
panic(err)