mapfs

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 8 Imported by: 127

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL