Documentation ¶
Overview ¶
Package fs loads configuration from file system.
FS loads a file with the given path from the file system and returns a nested map[string]any that is parsed with the given unmarshal function.
The unmarshal function must be able to unmarshal the file content into a map[string]any. For example, with the default json.Unmarshal, the file is parsed as JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is a Provider that loads configuration from file system.
To create a new FS, call New.
Click to show internal directories.
Click to hide internal directories.