peterbourgon / ff

Flags-first package for configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WithFilesystem option should io.FS as a parameter

ralf-cestusio opened this issue · comments

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