/goexpand

Primary LanguageGoMIT LicenseMIT

goexpand

Build Status

goexpand.Expand("foo[0:1][2:3],bar[00:01]")
// => {"foo02", "foo03", "foo12", "foo13", "bar00", "bar01"}

expander, _ := goexpand.NewExpander("{", "}", "..")
expander.Expand("foo{0..1}{0..1},bar{00..01}")
// => {"foo00", "foo01", "foo10", "foo11", "bar00", "bar01"}