We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5797a3f commit dfc02ffCopy full SHA for dfc02ff
traverse.go
@@ -39,6 +39,12 @@ func (r *Reader) Networks() *Networks {
39
return networks
40
}
41
42
+// NetworksWithin returns an iterator that can be used to traverse all networks
43
+// in the database which are contained in a given network.
44
+//
45
+// Please note that a MaxMind DB may map IPv4 networks into several locations
46
+// in an IPv6 database. This iterator will iterate over all of these
47
+// locations separately.
48
func (r *Reader) NetworksWithin(network *net.IPNet) *Networks {
49
ip := network.IP
50
prefixLength, _ := network.Mask.Size()
0 commit comments