package mapfs
import "golang.org/x/tools/godoc/vfs/mapfs"
Package mapfs file provides an implementation of the FileSystem interface based on the contents of a map[string]string.
Index ¶
Functions ¶
func New ¶
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.
Source Files ¶
mapfs.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 5 hours ago –
Tools for package owners.