package
0.1.16
Repository: https://github.com/chenbihao/gob.git
Documentation: pkg.go.dev

# Functions

检查当前执行程序二进制是否在gopath.
CheckProcessExist Will return true if the process with PID exists.
CopyFile 将一个目录复制到另外一个目录中.
CopyFolder 将一个目录复制到另外一个目录中.
如果不存在,则创建文件.
如果不存在,则创建文件(包含目录).
如果不存在,则创建文件夹.
DownloadFile will download a url to a local file.
判断所给路径文件/文件夹是否存在.
GetBinaryFileDirectory 获取当前执行程序的二进制文件目录.
GetExecDirectory 获取当前执行程序目录.
GetRootDirectory 获取当前项目根目录(根据 .go-root 文件识别).
路径是否是隐藏路径.
No description provided by the author
No description provided by the author
KillProcess kill process by pid.
NewCollection 初始化一个compare.
NewEmptyCollection 返回一个空的Collection.
美观输出数组.
SafeGo 进行安全的goroutine调用 第一个参数是context接口,如果还实现了Container接口,且绑定了日志服务,则使用日志服务 第二个参数是匿名函数handler, 进行最终的业务逻辑 SafeGo 函数并不会返回error,panic都会进入gob的日志服务.
SafeGoAndWait 进行并发安全并行调用 第一个参数是context接口,如果还实现了Container接口,且绑定了日志服务,则使用日志服务 第二个参数是匿名函数handlers数组, 进行最终的业务逻辑 返回handlers中任何一个错误(如果handlers中有业务逻辑返回错误).
SetProcessTitle 设置进程名.
输出所有子目录,目录名.
ToNormalCamel 将下划线分割的字符串转换为驼峰字符串 class_id => classId.
No description provided by the author
ToTitleCamel 将下划线分割的字符串转换为驼峰字符串 class_id => ClassId.
Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

# Structs

Collection 主体.