Documentation
¶
Index ¶
- Variables
- type File
- type FileData
- func (fd *FileData) Bytes() []byte
- func (fd *FileData) Close() error
- func (fd *FileData) Name() string
- func (fd *FileData) Read(b []byte) (n int, err error)
- func (fd *FileData) ReadAt(b []byte, off int64) (n int, err error)
- func (fd *FileData) ReadFrom(r io.Reader) (n int64, err error)
- func (fd *FileData) Seek(offset int64, whence int) (int64, error)
- func (fd *FileData) Stat() (fs.FileInfo, error)
- func (fd *FileData) Truncate(size int64) error
- func (fd *FileData) Watch(ch chan fsnotify.Event)
- func (fd *FileData) Write(b []byte) (n int, err error)
- func (fd *FileData) WriteAt(b []byte, off int64) (n int, err error)
- func (fd *FileData) WriteString(s string) (n int, err error)
- func (fd *FileData) WriteTo(w io.Writer) (n int64, err error)
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidOffset = errors.New("invalid offset")
)
Functions ¶
This section is empty.
Types ¶
type File ¶
type FileData ¶
func NewFileData ¶
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func NewFileInfo ¶
Click to show internal directories.
Click to hide internal directories.