Documentation ¶ Index ¶ func ExecCtlShell(stop chan byte, name string, s ...string) (string, error) func ExecShell(name string, s ...string) (string, error) func ExecShellQuit(name string, s ...string) (string, error) func MachineCode() string type CmdResponse func CmdRun(name string, args ...string) (CmdResponse, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ExecCtlShell ¶ func ExecCtlShell(stop chan byte, name string, s ...string) (string, error) ExecCtlShell 可手动结束的 shell命令 func ExecShell ¶ func ExecShell(name string, s ...string) (string, error) ExecShell 执行 shell语句 func ExecShellQuit ¶ func ExecShellQuit(name string, s ...string) (string, error) func MachineCode ¶ func MachineCode() string MachineCode 利用硬件信息 生成token Types ¶ type CmdResponse ¶ type CmdResponse struct { Stdout, StdErr []byte } func CmdRun ¶ func CmdRun(name string, args ...string) (CmdResponse, error) CmdRun 执行 shell语句,并返回 response 结构 Source Files ¶ View all Source files shell.go Click to show internal directories. Click to hide internal directories.