projectdiscovery / mapcidr

Utility program to perform multiple operations for a given subnet/CIDR ranges.
https://projectdiscovery.io
MIT License
972 stars 92 forks source link

[Issue] using mapcidr as a lib in readme points to a wrong function name #5

Closed dogasantos closed 3 years ago

dogasantos commented 3 years ago

Hi guys, Found that your lib offers a mapcidr.IPAddresses function, but your Readme doc has a mapcidr.Ips reference:

// List all ips in the CIDR
    ips, _ := mapcidr.Ips("192.168.1.0/24")
    for _, ip := range ips {
        fmt.Println(ip)
    }

it should be just replaced by

ips, _ := mapcidr.IPAddresses("192.168.1.0/24")

Ty!

ehsandeep commented 3 years ago

Thank you for pointing it out @dogasantos, the readme is aligned with the last stable release we created, we made a couple of changes after that and we planned to update them in the next release.

Mzack9999 commented 3 years ago

Done in #7