brute.go
func (b *bruteRanger) Remove(network net.IPNet) (RangerEntry, error) {
	networks, err := b.getEntriesByVersion(network.IP)
	if err != nil {
		return nil, err
	}
	key := network.String()
	if networkToDelete, found := networks[key]; found {
		delete(networks, key)
		return networkToDelete, nil
	}
	return nil, nil
}
func (b *bruteRanger) Remove(network net.IPNet) (RangerEntry, error) {
	networks, err := b.getEntriesByVersion(network.IP)
	if err != nil {
		return nil, err
	}
	key := network.String()
	if networkToDelete, found := networks[key]; found {
		delete(networks, key)
		return networkToDelete, nil
	}
	return nil, nil
}
func ( b * bruteRanger ) Remove ( network net . IPNet ) ( RangerEntry , error ) { networks , err := b . getEntriesByVersion ( network . IP ) if err != nil { return nil , err } key := network . String ( ) if networkToDelete , found := networks [ key ] ; found { delete ( networks , key ) return networkToDelete , nil } return nil , nil }
// Remove removes a RangerEntry identified by given network from ranger.
Remove removes a RangerEntry identified by given network from ranger .