Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir creates a directory http.File and its entry can be File(name, data) or Dir(name, entries).
func FS ¶
func FS(entries ...http.File) http.FileSystem
FS creates a file system for testing. An entry can be File(name, data) or Dir(name, entries).
func SingleFile ¶
func SingleFile(path, data string) http.FileSystem
Single creates a file system that only contains a signle file (but it may not in the root directory).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.