Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFile ¶
func ReadFile(filename string, fileSystem http.FileSystem) ([]byte, error)
Returns the content of a file that is embedded in the file system.
func WalkDir ¶
func WalkDir(fileSystem http.FileSystem, directory string, fn fs.WalkDirFunc) error
Walks the embedded filesystem calling `fn` for each file or directory found. All errors that arise visiting files and directories are filtered by `fn`. The files are walked in lexical order.
Types ¶
Click to show internal directories.
Click to hide internal directories.