diff --git a/glob.go b/glob.go index e4591c0..84b1e67 100644 --- a/glob.go +++ b/glob.go @@ -44,8 +44,8 @@ type Glob interface { // `?` matches any single non-separator character // c matches character c (c != `*`, `**`, `?`, `\`) // `\` c matches character c -func New(pattern string, d ...string) Glob { - chunks := parse(pattern, nil, strings.Join(d, ""), false) +func New(pattern string, separators ...string) Glob { + chunks := parse(pattern, nil, strings.Join(separators, ""), false) switch len(chunks) { case 1: