crossplane-contrib / function-go-templating

A Go templating composition function
https://crossplane.io
Apache License 2.0
52 stars 33 forks source link

refactor: Use `fs.FS` interface instead of `os` file access #63

Closed MisterMX closed 8 months ago

MisterMX commented 8 months ago

Description of your changes

Replace all IO operations based on the os package with the ones from the abstract fs package and pass a fsys parameter down to functions that need it.

Use embed.FS in tests.

Depends on https://github.com/crossplane-contrib/function-go-templating/pull/62

I have:

MisterMX commented 8 months ago

Updated this PR and removed the dependency on #62.