Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2022 Changes in this version type MemFS + func (fs *MemFS) Open(name string) (vfs.File, error) + func (fs *MemFS) Symlink(oldname, newname string) error v1.0.0 May 12, 2018 Changes in this version + const MinBufferSize + const PathSeparator + var ErrIsDirectory = errors.New("Is directory") + var ErrReadOnly = errors.New("File is read-only") + var ErrTooLarge = errors.New("Volume too large") + var ErrWriteOnly = errors.New("File is write-only") + type Buf struct + func NewBuffer(buf *[]byte) *Buf + func (v *Buf) Close() error + func (v *Buf) Read(p []byte) (n int, err error) + func (v *Buf) ReadAt(p []byte, off int64) (n int, err error) + func (v *Buf) Seek(offset int64, whence int) (int64, error) + func (v *Buf) Truncate(size int64) (err error) + func (v *Buf) Write(p []byte) (int, error) + type Buffer interface + Truncate func(int64) error + type MemFS struct + func Create() *MemFS + func (fs *MemFS) Lstat(name string) (os.FileInfo, error) + func (fs *MemFS) Mkdir(name string, perm os.FileMode) error + func (fs *MemFS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error) + func (fs *MemFS) PathSeparator() uint8 + func (fs *MemFS) ReadDir(path string) ([]os.FileInfo, error) + func (fs *MemFS) Remove(name string) error + func (fs *MemFS) Rename(oldpath, newpath string) error + func (fs *MemFS) Stat(name string) (os.FileInfo, error) + type MemFile struct + func NewMemFile(name string, rwMutex *sync.RWMutex, buf *[]byte) *MemFile + func (b *MemFile) Read(p []byte) (n int, err error) + func (b *MemFile) ReadAt(p []byte, off int64) (n int, err error) + func (b *MemFile) Seek(offset int64, whence int) (n int64, err error) + func (b *MemFile) Write(p []byte) (n int, err error) + func (b MemFile) Name() string + func (b MemFile) Sync() error + func (b MemFile) Truncate(size int64) (err error)