Documentation
¶
Index ¶
- Variables
- type File
- func (f *File) Close() error
- func (f *File) Discard(n int64) (discarded int64, err error)
- func (f *File) Len() int
- func (f *File) Name() string
- func (f *File) Peek(n int) ([]byte, error)
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) ReadByte() (byte, error)
- func (f *File) ReadRune() (ch rune, size int, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Size() int
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Uintptr() uintptr
- func (f *File) UnreadByte() error
- func (f *File) UnreadRune() error
- func (f *File) WriteTo(w io.Writer) (n int64, err error)
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var FS = &FileSystem{dir: "./"}
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) UnreadByte ¶
func (*File) UnreadRune ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func DirFS ¶
func DirFS(dir string) *FileSystem
Click to show internal directories.
Click to hide internal directories.