peterbourgon / ff

Flags-first package for configuration
Apache License 2.0
1.34k stars 59 forks source link

WithFilesystem option should io.FS as a parameter #121

Closed ralf-cestusio closed 9 months ago

ralf-cestusio commented 10 months ago

Currently it is taking embed.FS which makes it impossible to pass any other filesystem implementation.

Allowing the interface makes it possible to supply any struct which implements io.FS