filesystem

package
v0.0.0-...-1112331 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist = fs.ErrNotExist
)

File system errors.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	FS http.FileSystem
}

FileSystem is a custom file system handler. It implements the http.FileSystem interface.

func (FileSystem) Open

func (fs FileSystem) Open(name string) (http.File, error)

Open returns the file with the given name if it exists. A fs.ErrNotExist is returned if name is a directory.

Jump to

Keyboard shortcuts

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