gobwas/glob

Usage examples on Directories/Files?

Closed this issue · 1 comments

Hi, thanks for this promising looking package. I see all the great stuff in the README for matching strings, but could you please provide a short example for doing actual directory/file pattern matching using his library?

Hi! Thanks for the feedback. This package is intended to match strings with glob syntax – which is simpler and can be faster than regular expressions.
For directory/file pattern matching you could use one from standard library – filepath package. Or, by any reason, you could apply this package to every entry name in a filesystem manually.