gotools/godoc/vfs/fs.go

// FromFS converts an fs.FS to the FileSystem interface.
func FromFS(fsys fs.FS) FileSystem {}

type fsysToFileSystem

func (f *fsysToFileSystem) fsPath(name string) string {}

func (f *fsysToFileSystem) Open(name string) (ReadSeekCloser, error) {}

func (f *fsysToFileSystem) Lstat(name string) (os.FileInfo, error) {}

func (f *fsysToFileSystem) Stat(name string) (os.FileInfo, error) {}

func (f *fsysToFileSystem) RootType(name string) RootType {}

func (f *fsysToFileSystem) ReadDir(name string) ([]os.FileInfo, error) {}

func (f *fsysToFileSystem) String() string {}

type noSeekFile

func (f *noSeekFile) Seek(offset int64, whence int) (int64, error) {}