tools: Index | Files

package mapfs

import ""

Package mapfs file provides an implementation of the FileSystem interface based on the contents of a map[string]string.


Package Files


func New Uses

func New(m map[string]string) vfs.FileSystem

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.

Package mapfs imports 8 packages (graph) and is imported by 32 packages. Updated 2021-01-23. Refresh now. Tools for package owners.