Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrEmptyFile ¶
type ErrEmptyFile struct {
Name string
}
func (ErrEmptyFile) Error ¶
func (e ErrEmptyFile) Error() string
type ErrMissingDir ¶
type ErrMissingDir struct {
Name string
}
func (ErrMissingDir) Error ¶
func (e ErrMissingDir) Error() string
type ErrMissingFile ¶
type ErrMissingFile struct {
Name string
}
func (ErrMissingFile) Error ¶
func (e ErrMissingFile) Error() string
type ErrParseFile ¶
func (ErrParseFile) Error ¶
func (e ErrParseFile) Error() string
func (ErrParseFile) Unwrap ¶
func (e ErrParseFile) Unwrap() error
type ParseOptions ¶
type ParseOptions struct {
Root string `validate:"required"`
Ext string `validate:"required"`
ParserFn func(io.ReadCloser, string, any) error `validate:"required"`
OnParsedFile func(ParsedFile) error
// SkipDirs are name-tag directories whose files are not read.
SkipDirs []string
// IgnoreFileErrors are name-tag directories where a file that fails to
// decode is left out and the rest of the directory is still loaded.
IgnoreFileErrors []string
}
Click to show internal directories.
Click to hide internal directories.