Golang Exec 调用外部程序 | KaiQ.Gu|KerwinKoo Blog
用法e.g.
import ""os/exec""1 | func FetchDefaultTemplate() { |
cmd.start()官方说明:
1 | // Start starts the specified command but does not wait for it to complete. |
关于cmd.Wait()的官方说明:
1 | // Wait waits for the command to exit. |