Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileDoesNotExist is returned when the file we're interacting with does not exist. ErrFileDoesNotExist = errors.New("file does not exist") // ErrFileMissingExtension is returned when the provided file is missing an extension. ErrFileMissingExtension = errors.New("file missing extension") // ErrUnsupportedFileExtension is returned when we don't recognize a given file extension. ErrUnsupportedFileExtension = errors.New("unsupported file extension") )
View Source
var DefaultLoader = Loader{ ".json": encoding.JSON, ".toml": encoding.TOML, ".yaml": encoding.YAML, ".yml": encoding.YAML, ".xml": encoding.XML, }
DefaultLoader provides a default Loader implementation that supports reading a variety of files.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.