pkg/types/urlsmap.go
func (c URLsMap) String() string {
	var pairs []string
	for name, urls := range c {
		for _, url := range urls {
			pairs = append(pairs, fmt.Sprintf("%s=%s", name, url.String()))
		}
	}
	sort.Strings(pairs)
	return strings.Join(pairs, ",")
}
func (c URLsMap) String() string {
	var pairs []string
	for name, urls := range c {
		for _, url := range urls {
			pairs = append(pairs, fmt.Sprintf("%s=%s", name, url.String()))
		}
	}
	sort.Strings(pairs)
	return strings.Join(pairs, ",")
}
func ( c URLsMap ) String ( ) string { var pairs [ ] string for name , urls := range c { for _ , url := range urls { pairs = append ( pairs , fmt . Sprintf ( " " , name , url . String ( ) ) ) } } sort . Strings ( pairs ) return strings . Join ( pairs , " " ) }
// String turns URLsMap into discovery-formatted name-to-URLs sorted by name.
String turns URLsMap into discovery - formatted name - to - URLs sorted by name .