Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var ErrClosed = errClosed() + var ErrExist = errExist() + var ErrInvalid = errInvalid() + var ErrNotExist = errNotExist() + var ErrPermission = errPermission() + var SkipDir = errors.New("skip this directory") + func Glob(fsys FS, pattern string) (matches []string, err error) + func ReadFile(fsys FS, name string) ([]byte, error) + func ValidPath(name string) bool + func WalkDir(fsys FS, root string, fn WalkDirFunc) error + type DirEntry interface + Info func() (FileInfo, error) + IsDir func() bool + Name func() string + Type func() FileMode + func FileInfoToDirEntry(info FileInfo) DirEntry + func ReadDir(fsys FS, name string) ([]DirEntry, error) + type FS interface + Open func(name string) (File, error) + func Sub(fsys FS, dir string) (FS, error) + type File interface + Close func() error + Read func([]byte) (int, error) + Stat func() (FileInfo, error) + type FileInfo interface + IsDir func() bool + ModTime func() time.Time + Mode func() FileMode + Name func() string + Size func() int64 + Sys func() any + func Stat(fsys FS, name string) (FileInfo, error) + type FileMode uint32 + const ModeAppend + const ModeCharDevice + const ModeDevice + const ModeDir + const ModeExclusive + const ModeIrregular + const ModeNamedPipe + const ModePerm + const ModeSetgid + const ModeSetuid + const ModeSocket + const ModeSticky + const ModeSymlink + const ModeTemporary + const ModeType + func (m FileMode) IsDir() bool + func (m FileMode) IsRegular() bool + func (m FileMode) Perm() FileMode + func (m FileMode) String() string + func (m FileMode) Type() FileMode + type GlobFS interface + Glob func(pattern string) ([]string, error) + type PathError struct + Err error + Op string + Path string + func (e *PathError) Error() string + func (e *PathError) Timeout() bool + func (e *PathError) Unwrap() error + type ReadDirFS interface + ReadDir func(name string) ([]DirEntry, error) + type ReadDirFile interface + ReadDir func(n int) ([]DirEntry, error) + type ReadFileFS interface + ReadFile func(name string) ([]byte, error) + type StatFS interface + Stat func(name string) (FileInfo, error) + type SubFS interface + Sub func(dir string) (FS, error) + type WalkDirFunc func(path string, d DirEntry, err error) error