fs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dir = os.DirFS

Functions

This section is empty.

Types

type Event

type Event struct {
	File      string
	Timestamp time.Time
}

type FS

type FS = fs.FS

type File

type File = fs.File

type Layered

type Layered struct {
	Layers []FS
}

func (Layered) Open

func (l Layered) Open(name string) (file fs.File, err error)

type Watching

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

func NewWatching

func NewWatching(backing FS) (*Watching, error)

func (*Watching) Close

func (w *Watching) Close() error

func (*Watching) Events

func (w *Watching) Events() chan Event

func (*Watching) Open

func (w *Watching) Open(name string) (file fs.File, err error)

Jump to

Keyboard shortcuts

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