fs

package
v0.0.0-...-d4bbf0a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExistsFS

type ExistsFS struct {
	fs.FS
	UseCache bool
	// contains filtered or unexported fields
}

func NewExistsFS

func NewExistsFS(fs fs.FS) ExistsFS

func (ExistsFS) Exists

func (efs ExistsFS) Exists(name string) bool

func (ExistsFS) Open

func (efs ExistsFS) Open(name string) (fs.File, error)

func (ExistsFS) WithCache

func (efs ExistsFS) WithCache(withCache bool) ExistsFS

type ExistsHttpFS

type ExistsHttpFS struct {
	ExistsFS
	// contains filtered or unexported fields
}

func NewExistsHttpFS

func NewExistsHttpFS(fs ExistsFS) ExistsHttpFS

func (ExistsHttpFS) Exists

func (ehfs ExistsHttpFS) Exists(name string) bool

func (ExistsHttpFS) Open

func (ehfs ExistsHttpFS) Open(name string) (http.File, error)

type NeuteredFileSystem

type NeuteredFileSystem struct {
	fs.FS
}

func (NeuteredFileSystem) Open

func (nfs NeuteredFileSystem) Open(path string) (fs.File, error)

Jump to

Keyboard shortcuts

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