filesystem

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	http.FileSystem

	http.Handler
	// contains filtered or unexported fields
}

FileSystem .

func New

func New(httpfs http.FileSystem) *FileSystem

New .

func (*FileSystem) HTTPHandler

func (fs *FileSystem) HTTPHandler() http.Handler

HTTPHandler .

func (*FileSystem) Open

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

Open .

func (*FileSystem) SetRoot

func (fs *FileSystem) SetRoot(root string) *FileSystem

SetRoot .

func (*FileSystem) SetRoute

func (fs *FileSystem) SetRoute(route string) *FileSystem

SetRoute .

func (*FileSystem) Sub

func (fs *FileSystem) Sub(root, route string) *FileSystem

Sub .

Jump to

Keyboard shortcuts

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