vfs

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPDir

func HTTPDir(fs afero.Fs, stripPrefix string, notFound http.Handler) http.HandlerFunc

HTTPDir serves the files in the given afero.Fs or uses the given Handler to handles missing files.

func NewLayeredFilesystem

func NewLayeredFilesystem(dirs ...string) afero.Fs

NewLayeredFilesystem returns a "chrooted" and layered filesystem abstraction.

Types

type TemplateLoader

type TemplateLoader struct {
	// contains filtered or unexported fields
}

func NewTemplateLoader

func NewTemplateLoader(fs afero.Fs) *TemplateLoader

func (*TemplateLoader) Load

func (l *TemplateLoader) Load(srv *html.TemplateService) error

Jump to

Keyboard shortcuts

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