Documentation
¶
Overview ¶
Package httpfs implements http.FileSystem on top of a map[string]string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem is an implementation of http.FileSystem.
func NewFileSystem ¶
func NewFileSystem(files map[string]string, modTime time.Time) *FileSystem
NewFileSystem returns a new FileSystem containing http.Files from the files argument. The map keys must be rooted unix slash-separated paths. The file content is whatever the associated map value is. All files will have their modTime set to modTime.