code fast and reuse!
import "github.com/aizk/z"
type trans tools.
wrap of slice。
Clone() 克隆一个 slices := []int{1, 2, 3, 4, 5}
n := Chunk(s, 2) // [[1, 2], [3, 4], [5]]
Exist(path string) 判断文件或目录是否存在IsDir(path string) 判断是否是目录OpenFile(path string, perm 0777) 打开文件WorkDIR 返回工作目录