rakyll / statik

Embed files into a Go executable
Apache License 2.0
3.76k stars 224 forks source link

Add NewGlob function #100

Closed vdimir closed 3 years ago

vdimir commented 4 years ago

NewGlob function allows filter files in filesystem. It useful when some files served from an http.FileSystem, but other ones are internal resources that used in program, but don't exposed outside.

vdimir commented 4 years ago

I didn't catch #94, but it seems that described use case can be covered with multiple assets directories. Maybe in some cases glob filtering can be useful and both features could exists together. If not, we can close this PR.