fs

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	Open(name string) (io.ReadCloser, error)
	Create(name string) (io.WriteCloser, error)
}

type FSAdapter

type FSAdapter struct {
	fs.FS
	// contains filtered or unexported fields
}

func (*FSAdapter) Create

func (a *FSAdapter) Create(name string) (io.WriteCloser, error)

func (*FSAdapter) Open

func (a *FSAdapter) Open(name string) (io.ReadCloser, error)

type FSWalker

type FSWalker struct {
	*FSAdapter
	// contains filtered or unexported fields
}

func NewFSWalker

func NewFSWalker(root, path string) *FSWalker

func (*FSWalker) WalkDir

func (w *FSWalker) WalkDir(callback func(path string, err error) error) error

Jump to

Keyboard shortcuts

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