util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProcessExists

func CheckProcessExists(pid int) (bool, error)

func DownloadFile

func DownloadFile(filepath, url string) error

DownloadFile

func Exists

func Exists(path string) (bool, error)

Exists 目录是否存在

func GetExecDir

func GetExecDir() (string, error)

GetExecDir return absolute directory by invoker

func IsHiddenDir

func IsHiddenDir(path string) bool

IsHiddenDir 路径是否隐藏路径

func PrettyPrint

func PrettyPrint(arr [][]string)

PrettyPrint 美观输出数组

func SubDir

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

SubDir 输出所有子目录

func Unzip

func Unzip(src, 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