Documentation ¶
Overview ¶
Package util util chain33基础功能函数实现
Index ¶
- func CheckFileExists(fileName string) (bool, error)
- func CheckFileIsExist(filename string) bool
- func CheckPathExisted(path string) bool
- func CopyFile(srcFile, dstFile string) (written int64, err error)
- func DeleteFile(fileName string) error
- func DirEmpty(path string) (bool, error)
- func DirExists(path string) (bool, error)
- func MakeDir(path string) error
- func OpenFile(fileName string) (*os.File, error)
- func Pwd() string
- func ReadFile(file string) ([]byte, error)
- func WriteStringToFile(file, content string) (writeLen int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileExists ¶
CheckFileExists : check file exists or not
func CheckFileIsExist ¶
CheckFileIsExist : check whether the file exists or not
func CheckPathExisted ¶
CheckPathExisted : check the path exists or not
func WriteStringToFile ¶
WriteStringToFile : write content to file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.