exec
1 os/exec包
2 LookPath
3 Cmd类型
3.1 Command(name string, arg ...string) *Cmd
Command(name string, arg ...string) *Cmd3.2 CommandContext(ctx context.Context, name string, arg ...string) *Cmd
3.3 (c)Run() error
(c)Run() error3.4 (c)Start() error
(c)Start() error3.5 (c)Wait() error
Wait() error3.6 (c)Output() ([]byte, error)
(c)Output() ([]byte, error)3.7 (c)CombinedOutput() ([]byte, error)
(c)CombinedOutput() ([]byte, error)3.8 (c)StdinPipe() (io.WriteCloser, error)
(c)StdinPipe() (io.WriteCloser, error)最后更新于