RT
求教
举个栗子
package main
import (
"log"
"os/exec"
"fmt"
)
func main() {
c := exec.Command("ls")
result, err := c.CombinedOutput()
//result, err := c.Output()
if err != nil {
log.Fatal(err)
}
fmt.Println(string(result))
}
#3