Documentation ¶
Index ¶
- func Copy(src, dst string) error
- func GetConfigDir(paths ...string) (string, error)
- func GetCurrentDir() 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 Read(filepath string) string
- func ReadJSON(filepath string, data interface{}) 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 ToCSV(ctx context.Context, fpath string, list [][]string) error
- func ToXLSX(ctx context.Context, fpath string, list [][]string) error
- func Write(filepath, str string) error
- func WriteJSON(filepath string, data interface{}, pretty ...bool) 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.