genericfs

package
v0.0.5 Latest Latest
Warning

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

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

type FS struct{}

FS ...

func (FS) Glob

func (fsys FS) Glob(pattern string) ([]string, error)

Glob implements fs.GlobFS

func (FS) MkDir

func (fsys FS) MkDir(name string, perm fs.FileMode) error

MkDir implements writefs.MkDirFS

func (FS) Open

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

Open implements fs.FS

func (FS) OpenFile

func (fsys FS) OpenFile(name string, flag int, perm fs.FileMode) (writefs.FileWriter, error)

OpenFile implements writefs.WriteFS

func (FS) ReadDir

func (fsys FS) ReadDir(name string) ([]fs.DirEntry, error)

ReadDir implements fs.ReadDirFS

func (FS) ReadFile

func (fsys FS) ReadFile(name string) ([]byte, error)

ReadFile implements fs.ReadFileFS

func (FS) Remove

func (fsys FS) Remove(name string) error

Remove implements writefs.RemoveFS

func (FS) Stat

func (fsys FS) Stat(name string) (fs.FileInfo, error)

Stat implements fs.StatFS

func (FS) Sub

func (fsys FS) Sub(dir string) (fs.FS, error)

Sub implements fs.SubFS

Jump to

Keyboard shortcuts

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