I was looking into Golang source code here and DefaultMask() under the net package, what I don't understand is why this function is not a package function (without receiver) so from my perpective, proper call would be like:
ip := net.ParseIP("192.168.1.1")
i := ip.Mask(net.DefaultMask()) // <----
instead of the :
ip := net.ParseIP("192.168.1.1")
i := ip.Mask(ip.DefaultMask()) <----