Documentation ¶
Overview ¶
Package iohelper Date: 2022/9/7 00:43 Author: Amu Description:
Package iohelper Date: 2023/3/28 17:14 Author: Amu Description:
Package iohelper Date: 2023/3/28 17:13 Author: Amu Description:
Index ¶
- func CopyFile(src, des string) error
- func DeleteFile(absPath string) error
- func EnsureDir(dir string) error
- func FileExist(absPath string) bool
- func FileMD5(filename string) (string, error)
- func GetFileSize(filename string) (int64, error)
- func GetPathDirs(absDir string) (re []string)
- func GetPathFiles(absDir string) (re []string)
- func GetPwd() string
- func MakeDir(absDir string) error
- func MoveFile(from, to string) error
- func PathExist(dir string) bool
- func ReadFile(fname string) (src []string)
- func SaveToFile(fname string, src []string, isClear bool) bool
- func WriteFile(fname string, src []string, isClear bool) bool
- type CheckTextMd5
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveToFile ¶
SaveToFile 写入文件 isClear false 追加写入 true 覆盖写入
Types ¶
type CheckTextMd5 ¶
type CheckTextMd5 struct {
// contains filtered or unexported fields
}
func NewCheckTextMd5 ¶
func NewCheckTextMd5(fileName, fileText, md5FilePath, md5Name string) *CheckTextMd5
NewCheckTextMd5 fileName 和 fileText 人选一个传入, md5Name 是 md5 文件名称
func (*CheckTextMd5) Change ¶
func (s *CheckTextMd5) Change() bool
func (*CheckTextMd5) Write ¶
func (s *CheckTextMd5) Write() error
Click to show internal directories.
Click to hide internal directories.