func (hps SpaceHostPorts) AllMatchingScope(getMatcher ScopeMatchFunc) []string {
	indexes := indexesForScope(len(hps), func(i int) Address { return hps[i].SpaceAddress }, getMatcher)
	out := make([]string, 0, len(indexes))
	for _, index := range indexes {
		out = append(out, DialAddress(hps[index]))
	}
	return out
}
// AllMatchingScope returns the HostPorts that best satisfy the input scope
// matching function, as strings usable as arguments to net.Dial.
AllMatchingScope returns the HostPorts that best satisfy the input scope
matching function, as strings usable as arguments to net.Dial.
// AllMatchingScope returns the HostPorts that best satisfy the input scope // matching function as strings usable as arguments to net . Dial .
func (hps SpaceHostPorts) AllMatchingScope(getMatcher ScopeMatchFunc) []string {
	indexes := indexesForScope(len(hps), func(i int) Address { return hps[i].SpaceAddress }, getMatcher)
	out := make([]string, 0, len(indexes))
	for _, index := range indexes {
		out = append(out, DialAddress(hps[index]))
	}
	return out
}
func ( hps SpaceHostPorts ) AllMatchingScope ( getMatcher ScopeMatchFunc ) [ ] string { indexes := indexesForScope ( len ( hps ) , func ( i int ) Address { return hps [ i ] . SpaceAddress } , getMatcher ) out := make ( [ ] string , 0 , len ( indexes ) ) for _ , index := range indexes { out = append ( out , DialAddress ( hps [ index ] ) ) } return out }
AllMatchingScope returns the HostPorts that best satisfy the input scope
matching function, as strings usable as arguments to net.Dial.
AllMatchingScope returns the HostPorts that best satisfy the input scope matching function as strings usable as arguments to net . Dial .