fs

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File added in v1.12.3

func File(name string, r ContentReader) http.File

func Files

func Files(files ...string) http.FileSystem

func FilesWithContent

func FilesWithContent(files ...string) http.FileSystem

func HttpFile added in v1.12.3

func HttpFile(name string, resp *http.Response) http.File

func Root added in v1.12.1

func Root() http.FileSystem

func Union

func Union(fs ...http.FileSystem) http.FileSystem

func WithTracker added in v1.12.3

func WithTracker(fs http.FileSystem, root string, exts ...string) http.FileSystem

Types

type ContentReader added in v1.12.3

type ContentReader interface {
	io.Reader
	io.Seeker
	Size() int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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