testfs

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 1 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 map[string]*File

FS emulates fs.FS. Note: the path (map key) cannot begin with "/"!

func (FS) Open

func (f FS) Open(name string) (fs.File, error)

Open implements the same method as documented on fs.FS, except it doesn't validate the path.

type File

type File struct{ CloseErr error }

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(_ []byte) (int, error)

func (*File) Seek

func (f *File) Seek(_ int64, _ int) (int64, error)

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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