vfs

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModTimeFS added in v0.6.0

type ModTimeFS struct {
	fs.FS
	Time time.Time
}

ModTimeFS wraps an fs.FS and overrides all file mtimes with a fixed time.

func (ModTimeFS) Open added in v0.6.0

func (m ModTimeFS) Open(name string) (fs.File, error)

Open overrides the FS.Open method to wrap returned files.

func (ModTimeFS) ReadDir added in v0.6.0

func (m ModTimeFS) ReadDir(name string) ([]fs.DirEntry, error)

ReadDir implements fs.ReadDirFS if the underlying FS supports it.

Jump to

Keyboard shortcuts

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