mapfs - ActiveState ActiveGo 1.8
...

Package mapfs

import "golang.org/x/tools/godoc/vfs/mapfs"
Overview
Index

Overview ▾

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

func New

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

New returns a new FileSystem from the provided map. Map keys should be forward slash-separated pathnames and not contain a leading slash.