Glob utilities built on top of the well-tested gobwas/glob
MIT License
Glob utilities built on top of the well-tested gobwas/glob.
**
/posts/
in /posts/**
){posts/**,tags/**}
by pre-expanding globs.go get github.com/matthewmueller/glob
package main
import (
"github.com/matthewmueller/glob"
)
func main() {
files, _ := glob.Match("[A-Z]*.md")
for _, file := range files {
fmt.Println(file)
}
// Output:
// Changelog.md
// License.md
// Readme.md
}
MIT