package
0.7.7
Repository: https://github.com/ergoapi/util.git
Documentation: pkg.go.dev

# Functions

CheckBin 检查二进制是否存在.
No description provided by the author
DownloadFile 下载文件.
Exec cli commands.
No description provided by the author
HandlePluginCommand receives a pluginHandler and command-line arguments and attempts to find a plugin executable on the PATH that satisfies the given arguments.
NewDefaultPluginHandler instantiates the DefaultPluginHandler with a list of given filename prefixes used to identify valid plugin filenames.
RunCmd is exec on os ,no return.
RunCmdRes is exec on os , return result.

# Structs

DefaultPluginHandler implements PluginHandler.

# Interfaces

PluginHandler is capable of parsing command line arguments and performing executable filename lookups to search for valid plugin files, and execute found plugins.