Documentation ¶
Index ¶
- type File
- func (f *File) AbsolutePath() (*string, error)
- func (f *File) Body() []byte
- func (f *File) ChangeWorkingDir(path string) error
- func (f *File) CheckFileExists() bool
- func (f *File) CopyFile() error
- func (f *File) CreateFile() (*os.File, error)
- func (f *File) FileNameWithoutExtension() *string
- func (f *File) FileOpen() (*os.File, error)
- func (f *File) FilesInDir(dir string) ([]string, error)
- func (f *File) Path() string
- func (f *File) ReadFileAsByte() ([]byte, error)
- func (f *File) ReadFileAsString() (*string, error)
- func (f *File) SetBody(body []byte)
- func (f *File) SetDestPath(destPath string)
- func (f *File) SetPath(path string)
- func (f *File) SetPermissonFile(perm fs.FileMode)
- func (f *File) WriteByteFile() error
- func (f *File) WriteStringToFile(file *os.File, data string) error
- type Option
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) AbsolutePath ¶
func (*File) ChangeWorkingDir ¶ added in v1.0.3
func (*File) CheckFileExists ¶
func (*File) FileNameWithoutExtension ¶
func (*File) ReadFileAsByte ¶
func (*File) ReadFileAsString ¶
func (*File) SetDestPath ¶
func (*File) SetPermissonFile ¶
func (*File) WriteByteFile ¶
Click to show internal directories.
Click to hide internal directories.