Error example

This commit is contained in:
奶爸 2019-11-09 12:14:29 +08:00
parent 05c1202ca9
commit b609564e21

View File

@ -10,4 +10,9 @@ func main() {
output, err := cmd.Output()
log.Println("output:", string(output))
log.Println("err:", err)
cmd = exec.Command("ping", "qiongbi", "-c5")
output, err = cmd.Output()
log.Println("output:", string(output))
log.Println("err:", err)
}