Documentation ¶
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Read(size int) (string, error)
- func (f *File) ReadAll() (string, error)
- func (f *File) ReadAllBytes() ([]byte, error)
- func (f *File) ReadBytes(size int) ([]byte, error)
- func (f *File) ReadLines() ([]string, error)
- func (f *File) Seek(offset int64) error
- func (f *File) SeekEnd() error
- func (f *File) SeekStart() error
- func (f *File) Write(content string) (int, error)
- func (f *File) WriteBytes(content []byte) (int, error)
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) ReadAllBytes ¶
ReadAllBytes 从二进制文件中读取全部内容 ReadAllBytes return 读取的内容,二进制格式
Click to show internal directories.
Click to hide internal directories.