util

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProcessExist

func CheckProcessExist(pid int) bool

CheckProcessExist 检查协程是否存在

func CopyFile added in v1.1.0

func CopyFile(source, destination string) error

CopyFile 将一个文件拷贝到另外一个目录中

func CopyFolder added in v1.1.0

func CopyFolder(source, destination string) error

CopyFolder 将一个目录复制到另外一个目录中

func DownloadFile

func DownloadFile(filepath string, url string) error

DownloadFile 将文件下载到指定路径,并用该文件保存

func Exists

func Exists(path string) bool

Exists 判断给定的文件/文件夹是否存在

func GetExecDirectory

func GetExecDirectory() string

GetExecDirectory 获取当前执行程序目录

func IsHiddenDIrectory

func IsHiddenDIrectory(path string) bool

IsHiddenDIrectory 路径是否是隐藏路径

func PrettyPrint

func PrettyPrint(arr [][]string)

PrettyPrint 美观输出数组

func Subdir

func Subdir(folder string) ([]string, error)

Subdir 输出所有子目录,目录名

func Unzip

func Unzip(src string, dest string) ([]string, error)

Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL