Documentation ¶
Index ¶
- func Dir(fp string) string
- func DirsUnder(dirPath string) ([]string, error)
- func Download(toFile, url string) error
- func EnsureDir(fp string) error
- func IsExist(fp string) bool
- func IsFile(fp string) bool
- func Md5File(file string) (string, error)
- func Md5String(str string) string
- func ReadBytes(cpath string) ([]byte, error)
- func ReadString(cpath string) (string, error)
- func RealPath(fp string) (string, error)
- func SelfDir() string
- func SelfPath() string
- func Unlink(fp string) error
- func WriteBytes(filePath string, b []byte) (int, error)
- func WriteString(filePath string, s string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExist ¶
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func IsFile ¶
IsFile checks whether the path is a file, it returns false when it's a directory or does not exist.
func ReadString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.