type URLsMap … // NewURLsMap returns a URLsMap instantiated from the given string, // which consists of discovery-formatted names-to-URLs, like: // mach0=http://1.1.1.1:2380,mach0=http://2.2.2.2::2380,mach1=http://3.3.3.3:2380,mach2=http://4.4.4.4:2380 func NewURLsMap(s string) (URLsMap, error) { … } // NewURLsMapFromStringMap takes a map of strings and returns a URLsMap. The // string values in the map can be multiple values separated by the sep string. func NewURLsMapFromStringMap(m map[string]string, sep string) (URLsMap, error) { … } // String turns URLsMap into discovery-formatted name-to-URLs sorted by name. func (c URLsMap) String() string { … } // URLs returns a list of all URLs. // The returned list is sorted in ascending lexicographical order. func (c URLsMap) URLs() []string { … } // Len returns the size of URLsMap. func (c URLsMap) Len() int { … } // parse parses the given string and returns a map listing the values specified for each key. func parse(s string) map[string][]string { … }