Documentation ¶
Index ¶
- Constants
- Variables
- func CleanFile(path string) error
- func CopyAll(src, dst string) error
- func Create(v string) (*os.File, error)
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsFile(path string) bool
- func Mkdir(path string, mode ...fs.FileMode) error
- func Move(src, dst string) error
- func Open(v string) (*os.File, error)
- func OpenRead(v string) ([]byte, error)
- func OpenWrite(v string) (*os.File, error)
- func ReadDir(path string) []string
- func ReadDirAll(path string) []string
- func ReadDirInfo(path string) []fs.FileInfo
- func ReadDirRaw(path string) ([]fs.DirEntry, error)
- func ReaderWriter(w io.Reader, r io.Writer) (*bufio.Reader, *bufio.Writer)
- func Remove(v string) error
- func Symlink(src, dst string) error
- func TruncWrite(path string, d any) error
- func Write(path string, d any) error
Constants ¶
Variables ¶
Functions ¶
func IsDir ¶ added in v0.0.11
This function will check if the target is a directory.
**When the target does not exist or other errors occur, it will return `false`**
func Open ¶ added in v1.7.0
Open opens the named file for reading.
If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY.
If there is an error, it will be of type *PathError.
func ReadDirAll ¶ added in v1.5.0
func ReadDirInfo ¶ added in v1.17.0
func ReaderWriter ¶ added in v1.19.0
func TruncWrite ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.