c-robinson / iplib

A library for working with IP addresses and networks in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Example Using iplib.Net4

ikandars opened this issue · comments

Hi,

I found incorrect dos in readme file related to using iplib.Net4. In this line:

n := NewNet4(net.ParseIP("192.168.0.0"), 16)

it should be:

n := iplib.NewNet4(net.ParseIP("192.168.0.0"), 16)

and in this one:

fmt.Println(n.Network()) // 192.168.0.0

it should be:

fmt.Println(n.IP()) // 192.168.0.0

Thanks for noticing these, they'll be corrected in 1.0.3