type UniqueURLs … // Set parses a command line set of URLs formatted like: // http://127.0.0.1:2380,http://10.1.1.2:80 // Implements "flag.Value" interface. func (us *UniqueURLs) Set(s string) error { … } // String implements "flag.Value" interface. func (us *UniqueURLs) String() string { … } // NewUniqueURLsWithExceptions implements "url.URL" slice as flag.Value interface. // Given value is to be separated by comma. func NewUniqueURLsWithExceptions(s string, exceptions ...string) *UniqueURLs { … } // UniqueURLsFromFlag returns a slice from urls got from the flag. func UniqueURLsFromFlag(fs *flag.FlagSet, urlsFlagName string) []url.URL { … } // UniqueURLsMapFromFlag returns a map from url strings got from the flag. func UniqueURLsMapFromFlag(fs *flag.FlagSet, urlsFlagName string) map[string]struct{ … }