Documentation ¶
Index ¶
- Variables
- func ConvertFromCADToPDF(filePath string) string
- func ConvertToPDF(filePath string) string
- func DownloadFile(source string, fileSuffix string, filenameWithSuffix string) (string, error)
- func File2Bytes(filename string) ([]byte, error)
- func FileExist(path string) bool
- func FileTypeVerify(url string) (string, string, string)
- func GetFileNameOnly(url string) string
- func GetFilesFromDirectory(source string) ([]string, string)
- func InteractiveToexec(commandName string, params []string) (string, bool)
- func IsFileExist(filename string, filesize int64) bool
- func PathExists(path string) (bool, error)
- func UnarchiveFiles(file string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllOfficeEtx = []string{".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx"} AllImageEtx = []string{".jpeg", ".jpg", ".png", ".gif", ".bmp", ".heic", ".tiff"} AllCADEtx = []string{".dwg", ".dxf"} AllAchieveEtx = []string{".tar.gz", ".tar.bzip2", ".tar.xz", ".zip", ".rar", ".tar", ".7z", "br", ".bz2", ".lz4", ".sz", ".xz", ".zstd"} AllTxtEtx = []string{".txt", ".java", ".php", ".py", ".md", ".js", ".css", ".xml", ".log"} AllVideoEtx = []string{".mp4", ".webm", ".ogg"} )
Functions ¶
func ConvertFromCADToPDF ¶
func ConvertToPDF ¶
func DownloadFile ¶
func File2Bytes ¶
func GetFileNameOnly ¶
func GetFilesFromDirectory ¶
func IsFileExist ¶
func PathExists ¶
func UnarchiveFiles ¶
func UnarchiveFiles(file string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.