logfs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 FS

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

func New

func New(fsys fs.FS, logger Logger) (*FS, error)

func (*FS) Abs

func (f *FS) Abs(p path.Relative) path.Absolute

func (*FS) Delete

func (f *FS) Delete(p path.Relative, recursive bool) error

func (*FS) Exists

func (f *FS) Exists(p path.Relative) bool

func (*FS) ModTime

func (f *FS) ModTime(p path.Relative) (time.Time, error)

func (*FS) Reader

func (f *FS) Reader(p path.Relative) (io.ReadCloser, error)

func (*FS) Size

func (f *FS) Size(p path.Relative) int64

func (*FS) Write

func (f *FS) Write(p path.Relative, rd io.ReadCloser, inbetween bool) error

type Logger

type Logger interface {
	Printf(format string, vars ...any)
}

Jump to

Keyboard shortcuts

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