Package mapfs file provides an implementation of the FileSystem interface based on the contents of a map[string]string.
Package Files ¶
func New ¶
New returns a new FileSystem from the provided map. Map keys must be forward slash-separated paths with no leading slash, such as "file1.txt" or "dir/file2.txt". New panics if any of the paths contain a leading slash.
Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks agoTools for package owners.