Browse Source

pkg/flags: add NewURLs helper

Brian Waldon 11 years ago
parent
commit
add3906f6c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      pkg/flags/urls.go

+ 6 - 0
pkg/flags/urls.go

@@ -44,3 +44,9 @@ func (us *URLs) String() string {
 	}
 	return strings.Join(all, ",")
 }
+
+func NewURLs(init string) *URLs {
+	v := &URLs{}
+	v.Set(init)
+	return v
+}