Documentation ¶
Index ¶
- func Basename(fp string) string
- func Close(fd *os.File) error
- func Create(name string) (*os.File, error)
- func Dir(fp string) string
- func DirsUnder(dirPath string) ([]string, error)
- func Download(toFile, url string) error
- func EnsureDir(fp string) error
- func EnsureDirRW(dataDir string) error
- func FileMTime(fp string) (int64, error)
- func FileSize(fp string) (int64, error)
- func FilesUnder(dirPath string) ([]string, error)
- func InsureDir(fp string) error
- func IsExist(fp string) bool
- func IsFile(fp string) bool
- func MD5(file string) (string, error)
- func OpenLogFile(fp string) (*os.File, error)
- func ReadBytes(cpath string) ([]byte, error)
- func ReadJson(cpath string, cptr interface{}) error
- func ReadLineBytes(r *bufio.Reader) ([]byte, error)
- func ReadLineString(r *bufio.Reader) (string, error)
- func ReadString(cpath string) (string, error)
- func ReadStringTrim(cpath string) (string, error)
- func ReadYaml(cpath string, cptr interface{}) error
- func RealPath(fp string) (string, error)
- func Remove(name 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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.