Documentation
¶
Index ¶
- func AbsoluteDir(pth string) string
- func AbsoluteFile(pth string) string
- func AddPathSepIfNeeded(pth string) string
- func CopyFile(src, dst string) (int64, error)
- func FileExist(path string) bool
- func GetExeDir() (dir string, isDebug bool)
- func GetExtName(pathOrUrl string) string
- func GetFileName(pathOrUrl string) string
- func GetFileNameWithoutExt(pathOrUrl string) string
- func GetFilesFromParams(arguments []string) []string
- func GetParent(fileOrDir string) (dir string)
- func GetWorkDir() string
- func IsAbsolutePath(pth string) bool
- func IsDir(f string) bool
- func MkDirIfNeeded(dir string) error
- func ReadConfFromBin(filePath string) (bytes []byte, err error)
- func ReadFile(filePath string) string
- func ReadFileBuf(filePath string) []byte
- func RemoveLastSep(fileOrDir string) (dir string)
- func RemovePathSepIfNeeded(pth string) string
- func RmDir(dir string) error
- func Upload(url string, files []string, extraParams map[string]string) (uploadResult model.UploadResponse, err error)
- func WriteFile(filePath string, content string)
- func ZipFiles(dist string, dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsoluteDir ¶
func AbsoluteFile ¶
func AddPathSepIfNeeded ¶
func GetExtName ¶
func GetFileName ¶
func GetFileNameWithoutExt ¶
func GetFilesFromParams ¶
func GetWorkDir ¶
func GetWorkDir() string
func IsAbsolutePath ¶
func MkDirIfNeeded ¶
func ReadConfFromBin ¶
func ReadFileBuf ¶
func RemoveLastSep ¶
func RemovePathSepIfNeeded ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.