vfsutil

package
v0.0.0-...-9431910 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vfsutil contains small utility functions for working with virtual filesystems. See the docs for github.com/rainycape/vfs for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bake

func Bake(w io.Writer, dir string, extensions []string) error

Bake writes the data for a VFS generated from dir to the given io.Writer. The extensions argument can be used to limit the files included in the VFS by their extension. If empty, all files are included.

Types

type VFS

type VFS interface {
	vfs.VFS
}

VFS is just an alias for github.com/rainycape/vfs.VFS, to avoid importing the latter.

func MemFromDir

func MemFromDir(dir string) VFS

func MustOpenBaked

func MustOpenBaked(s string) VFS

MustOpenBaked is a shorthand for OpenBaked() which panics.

func OpenBaked

func OpenBaked(s string) (VFS, error)

OpenBaked opens a VFS baked into a string using gondola bake

Jump to

Keyboard shortcuts

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