Documentation ¶
Index ¶
- func AddFilePostfix(pth, postfix string) (ret string)
- func AddPathSepRightIfNeeded(pth string) string
- func AddSepIfNeeded(pth string) string
- func ChangeFileExt(filePath, ext string) string
- func ConvertReferRangeToPath(file, currFile string) (path string)
- func ConvertResExcelPath(from, dir string) (ret, sheet string)
- func ConvertResYamlPath(from, workDir string) (ret string)
- func Download(url string, dst string) (err error)
- func FileExist(path string) bool
- func GetAbsDir(path string) string
- func GetAbsoluteDir(pth string) string
- func GetAbsolutePath(pth string) string
- func GetFileName(filePath string) string
- func GetFileOrFolderDir(pth string) (ret string)
- func GetFilesByExtInDir(folder, ext string, files *[]string)
- func GetFilesFromParams(args []string) (files []string, count int)
- func GetFilesInDir(folder, ext string, files *[]string)
- func GetResProp(from, currFileDir string) (resFile, resType, sheet string)
- func GetUploadFileName(name string) (ret string, err error)
- func GetWorkDir(root string) (ret string, err error)
- func HTTPDownload(uri string) ([]byte, error)
- func HandleFiles(files []string) []string
- func IsAbsPath(pth string) bool
- func IsDir(f string) bool
- func MkDirIfNeeded(dir string) error
- func NewFileNameWithUlidPostfix(pth string) (ret string)
- func ReadFile(filePath string) string
- func ReadFileBuf(filePath string) []byte
- func RemoveExist(path string)
- func RemovePathSepLeftIfNeeded(pth string) string
- func RmFile(dir string) error
- func WriteDownloadFile(dst string, d []byte) error
- func WriteFile(filePath string, content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilePostfix ¶
func AddPathSepRightIfNeeded ¶
func AddSepIfNeeded ¶
func ChangeFileExt ¶
func ConvertReferRangeToPath ¶
func ConvertResExcelPath ¶
func ConvertResYamlPath ¶
func GetAbsoluteDir ¶
func GetAbsolutePath ¶
func GetFileName ¶
func GetFileOrFolderDir ¶
func GetFilesByExtInDir ¶
func GetFilesFromParams ¶
func GetFilesInDir ¶
func GetResProp ¶
func GetUploadFileName ¶
func GetWorkDir ¶
func HTTPDownload ¶
func HandleFiles ¶
func MkDirIfNeeded ¶
func ReadFileBuf ¶
func RemoveExist ¶
func RemoveExist(path string)
func WriteDownloadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.