Skip to content

Commit 023ecc6

Browse files
committed
Update README with fs.FS provider
1 parent f7e28d0 commit 023ecc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ Writing Providers and Parsers are easy. See the bundled implementations in the `
606606
| Package | Provider | Description |
607607
| ------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
608608
| providers/file | `file.Provider(filepath string)` | Reads a file and returns the raw bytes to be parsed. |
609+
| providers/fs | `fs.Provider(f fs.FS, filepath string)` | (**Experimental**) Reads a file from fs.FS and returns the raw bytes to be parsed. The provider requires `go v1.16` or higher. |
609610
| providers/basicflag | `basicflag.Provider(f *flag.FlagSet, delim string)` | Takes an stdlib `flag.FlagSet` |
610611
| providers/posflag | `posflag.Provider(f *pflag.FlagSet, delim string)` | Takes an `spft3/pflag.FlagSet` (advanced POSIX compatible flags with multiple types) and provides a nested config map based on delim. |
611612
| providers/env | `env.Provider(prefix, delim string, f func(s string) string)` | Takes an optional prefix to filter env variables by, an optional function that takes and returns a string to transform env variables, and returns a nested config map based on delim. |

0 commit comments

Comments
 (0)