vfstest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMap

func FromMap[File any](m map[string]File, useCaseSensitiveFileNames bool) vfs.FS

FromMap creates a new vfs.FS from a map of paths to file contents. Those file contents may be strings, byte slices, or [fstest.MapFile]s.

The paths must be normalized absolute paths according to the tspath package, without trailing directory separators. The paths must be all POSIX-style or all Windows-style, but not both.

func Symlink(target string) *fstest.MapFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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