Documentation
¶
Index ¶
- Variables
- type File
- func (f File) Close() error
- func (f File) Name() string
- func (f File) Read(p []byte) (int, error)
- func (f File) ReadAt(p []byte, off int64) (n int, err error)
- func (f File) Seek(offset int64, whence int) (n int64, err error)
- func (f File) Stat() (os.FileInfo, error)
- func (f File) Sync() error
- func (f File) Truncate(size int64) (err error)
- func (f File) Write(p []byte) (int, error)
- type ZipFS
- func (f ZipFS) Lstat(name string) (os.FileInfo, error)
- func (f ZipFS) Mkdir(name string, perm os.FileMode) error
- func (f ZipFS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error)
- func (f ZipFS) PathSeparator() uint8
- func (f ZipFS) ReadDir(fp string) (entries []filesystem.FileInfo, err error)
- func (f ZipFS) Remove(name string) error
- func (f ZipFS) Rename(oldpath, newpath string) error
- func (f ZipFS) Stat(name string) (filesystem.FileInfo, error)
- func (f ZipFS) Unmount() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrReadOnly is returned if the file is read-only and write operations are disabled. ErrReadOnly = errors.New("File is read-only") // ErrWriteOnly is returned if the file is write-only and read operations are disabled. ErrWriteOnly = errors.New("File is write-only") // ErrIsDirectory is returned if the file under operation is not a regular file but a directory. ErrIsDirectory = errors.New("Is directory") ErrNotPerm = errors.New("Operation not permitted") ErrNotExist = errors.New("File does not exist") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.