type URLsValue … // 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 *URLsValue) Set(s string) error { … } // String implements "flag.Value" interface. func (us *URLsValue) String() string { … } // NewURLsValue implements "url.URL" slice as flag.Value interface. // Given value is to be separated by comma. func NewURLsValue(s string) *URLsValue { … } // URLsFromFlag returns a slices from url got from the flag. func URLsFromFlag(fs *flag.FlagSet, urlsFlagName string) []url.URL { … }