Documentation ¶
Overview ¶
Package loader has a data loading interface and various implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLoader ¶
func NewFileLoader(fSys fs.FileSystem) *fileLoader
NewFileLoader returns a new fileLoader.
Types ¶
type Loader ¶
type Loader interface { // Root returns the root location for this Loader. Root() string // New returns Loader located at newRoot. New(newRoot string) (Loader, error) // Load returns the bytes read from the location or an error. Load(location string) ([]byte, error) // Cleanup cleans the loader Cleanup() error }
Loader interface exposes methods to read bytes.
Click to show internal directories.
Click to hide internal directories.