xfs

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path  string
	Bytes []byte
}

type XFS

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

func New

func New(fsys stream.CreateFS[struct{}]) *XFS

func (*XFS) Read

func (xfs *XFS) Read(path string) (File, error)

Read file

func (*XFS) Walk

func (xfs *XFS) Walk(ctx context.Context, dir string, ext string) (<-chan string, <-chan error)

Walk (recursivly) dir at filesystem, matching files with extension

func (*XFS) Write

func (xfs *XFS) Write(file File) (File, error)

Write file

Jump to

Keyboard shortcuts

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