brute.go
func (b *bruteRanger) Contains(ip net.IP) (bool, error) {
	entries, err := b.getEntriesByVersion(ip)
	if err != nil {
		return false, err
	}
	for _, entry := range entries {
		network := entry.Network()
		if network.Contains(ip) {
			return true, nil
		}
	}
	return false, nil
}
func (b *bruteRanger) Contains(ip net.IP) (bool, error) {
	entries, err := b.getEntriesByVersion(ip)
	if err != nil {
		return false, err
	}
	for _, entry := range entries {
		network := entry.Network()
		if network.Contains(ip) {
			return true, nil
		}
	}
	return false, nil
}
func ( b * bruteRanger ) Contains ( ip net . IP ) ( bool , error ) { entries , err := b . getEntriesByVersion ( ip ) if err != nil { return false , err } for _ , entry := range entries { network := entry . Network ( ) if network . Contains ( ip ) { return true , nil } } return false , nil }
// Contains returns bool indicating whether given ip is contained by any
// network in ranger.
Contains returns bool indicating whether given ip is contained by any network in ranger .