您要将命令路径从
go二进制文件的位置更改为
abc。
type Cmd struct { // Path is the path of the command to run. // // This is the only field that must be set to a non-zero // value. If Path is relative, it is evaluated relative // to Dir. Path string
如果要更改工作目录,请使用
Cmd.Dir

您要将命令路径从
go二进制文件的位置更改为
abc。
type Cmd struct { // Path is the path of the command to run. // // This is the only field that must be set to a non-zero // value. If Path is relative, it is evaluated relative // to Dir. Path string
如果要更改工作目录,请使用
Cmd.Dir