Documentation
¶
Index ¶
- func CalcFileMD5(filename string) (string, error)
- func DirExists(path string) bool
- func FileExists(path string) bool
- func FindFilesWithExt(dirPath, ext string) ([]string, error)
- func GenerateRandomString(length int) string
- func GetFileSize(filename string) (int64, error)
- func IsTargetExt(info fs.DirEntry, ext string) bool
- func ReadFile(filename string) ([]byte, error)
- func ReadFileParts(filename string, fileoffset int64, length int64) ([]byte, error)
- func WriteFile(filename string, data []byte) error
- func WriteFile2(filename string, data []byte) error
- func WriteFile3(filename string, data []byte) error
- func WriteFileParts(filename string, fileoffset int64, data []byte) error
- func WriteJson(filename string, data interface{}) error
- func WriteScript(filename string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FindFilesWithExt ¶ added in v0.0.11
func GenerateRandomString ¶
func GetFileSize ¶
func ReadFileParts ¶
func WriteFile3 ¶
WriteFile writes data to the file specified by filename. It uses a temporary file for safety and ensures data is flushed to disk.
func WriteScript ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.