📌  相关文章
📜  golang 执行 bash 命令 - Go 编程语言 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.232000             🧑  作者: Mango

代码示例1
res := exec.Command("echo", "hello wordl")
stdin, _ := res.CombinedOutput()
fmt.Println(string(stdin))