Documentation ¶
Index ¶
- func CreateDirs(path string) error
- func IsExist(path string) bool
- func ReadFileWithIoutil(fullName string, handleLine func(int, string)) error
- func ReadLineWithBufio(fullName string, handleLine func(int, string)) error
- func ReadLineWithFile(fullName string, handleLine func(int, string)) error
- func ReadLineWithOs(fullName string, handleLine func(int, string)) error
- func WriteFileBufio(fullName string, flag int, body []byte) error
- func WriteFileWithIoutil(fullName string, body []byte) error
- func WriteFileWithOS(fullName string, body []byte) error
- type Fs
- type OsFs
- func (OsFs) Chmod(name string, mode os.FileMode) error
- func (OsFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (OsFs) Create(name string) (*os.File, error)
- func (OsFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (OsFs) Mkdir(name string, perm os.FileMode) error
- func (OsFs) MkdirAll(path string, perm os.FileMode) error
- func (OsFs) Name() string
- func (OsFs) Open(name string) (*os.File, error)
- func (OsFs) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func (OsFs) Remove(name string) error
- func (OsFs) RemoveAll(path string) error
- func (OsFs) Rename(oldname, newname string) error
- func (OsFs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileWithIoutil ¶ added in v0.0.3
func ReadLineWithBufio ¶ added in v0.0.3
func ReadLineWithFile ¶ added in v0.0.3
func ReadLineWithOs ¶ added in v0.0.3
func WriteFileBufio ¶ added in v0.0.3
func WriteFileWithIoutil ¶ added in v0.0.3
func WriteFileWithOS ¶ added in v0.0.3
Types ¶
type Fs ¶
type Fs interface { Create(name string) (*os.File, error) Mkdir(name string, perm os.FileMode) error MkdirAll(path string, perm os.FileMode) error Open(name string) (*os.File, error) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) Remove(name string) error RemoveAll(path string) error Rename(oldname, newname string) error Stat(name string) (os.FileInfo, error) Name() string Chmod(name string, mode os.FileMode) error Chtimes(name string, atime time.Time, mtime time.Time) error }
Click to show internal directories.
Click to hide internal directories.