Documentation
¶
Index ¶
- func Copy(src, dst string) error
- func GetConfDir(args ...string) string
- func GetConfigDir(paths ...string) (string, error)
- func GetCurrentDir() string
- func GetDataDir(args ...string) string
- func GetFileDir(filepath string) string
- func GetFileExt(file string) string
- func GetFileName(filepath string) string
- func GetFileNameWithoutExt(filepath string) string
- func GetFilePathWithoutExt(filepath string) string
- func GetHomeDir() string
- func IsDir(filepath string) bool
- func IsExist(filepath string) bool
- func IsFile(filepath string) bool
- func IsImage(filepath string) bool
- func LineContent(filepath string, numbers ...int) map[int]string
- func LineCount(filepath string) int
- func ListDirs(dir string, isRecursive ...bool) []string
- func ListFiles(dir string, match string, isRecursive ...bool) []string
- func Md5(path string) (string, error)
- func MineType(filepath string) string
- func ModTime(filepath string) time.Time
- func Read(filepath string) string
- func ReadCsv(ctx context.Context, fpath string) ([][]string, error)
- func ReadJSON(filepath string, data interface{}) error
- func ReadXlsx(ctx context.Context, fpath string, sheets ...string) ([][]string, error)
- func ReaderMineType(r io.Reader) string
- func Shadow(fpath string, joins ...string) string
- func Size(filepath string) int64
- func SizeText(size int64) string
- func Temp(args ...string) string
- func Write(filepath, str string) error
- func WriteCsv(ctx context.Context, fpath string, list [][]string, forces ...bool) error
- func WriteJSON(filepath string, data interface{}, pretty ...bool) error
- func WriteXlsx(ctx context.Context, fpath string, list [][]interface{}, forces ...bool) error
- func WriteZIP(zpath string, fpaths []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶ added in v0.0.5
GetConfigDir ...
func GetFileNameWithoutExt ¶
GetFileNameWithoutExt ...
func GetFilePathWithoutExt ¶
GetFilePathWithoutExt ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.