aboutsummaryrefslogtreecommitdiff
path: root/strconv.go
diff options
context:
space:
mode:
Diffstat (limited to 'strconv.go')
-rw-r--r--strconv.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/strconv.go b/strconv.go
index b34241d..14c0c27 100644
--- a/strconv.go
+++ b/strconv.go
@@ -47,3 +47,11 @@ func parsePartPath(s string) ([]int, error) {
}
return path, nil
}
+
+func parseAddressList(s string) []string {
+ l := strings.Split(s, ",")
+ for i, addr := range l {
+ l[i] = strings.TrimSpace(addr)
+ }
+ return l
+}