Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
OS provides file operations backed by the local filesystem.
Functions ¶
This section is empty.
Types ¶
type Ops ¶
type Ops struct {
ReadFile func(path string) ([]byte, error)
Stat func(path string) (os.FileInfo, error)
Glob func(pattern string) ([]string, error)
}
Ops describes the file operations needed by config/data/validation loaders.
func (Ops) WithDefaults ¶
WithDefaults fills any nil operations with OS-backed defaults.
Click to show internal directories.
Click to hide internal directories.