Documentation ¶
Overview ¶
Package file loads configuration from OS file.
File loads a file with the given path from the OS 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 File ¶
type File struct {
// contains filtered or unexported fields
}
File is a Provider that loads configuration from a OS file.
To create a new File, call New.
Click to show internal directories.
Click to hide internal directories.