go-task / slim-sprig

Useful template functions for Go templates.
https://go-task.github.io/slim-sprig/
MIT License
55 stars 16 forks source link

Add filepath.Glob filepath.Join support #5

Open lixin9311 opened 3 years ago

lixin9311 commented 3 years ago

The upstream repo gives little priority to data source support such as glob.

But we need something similar to wildcard from GNU Make in order to ease the building script.

Currently, I'm using a combination of find and different vars, which is not straightforward.

I could submit a Pull Request if you like, but I believe it is pretty simple.

andreynering commented 2 years ago

Hi @lixin9311,

I think having these functions probably makes sense, but IMO they would likely be a better fit in the task repository than on this one.