mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
Error example
This commit is contained in:
parent
05c1202ca9
commit
b609564e21
@ -10,4 +10,9 @@ func main() {
|
|||||||
output, err := cmd.Output()
|
output, err := cmd.Output()
|
||||||
log.Println("output:", string(output))
|
log.Println("output:", string(output))
|
||||||
log.Println("err:", err)
|
log.Println("err:", err)
|
||||||
|
|
||||||
|
cmd = exec.Command("ping", "qiongbi", "-c5")
|
||||||
|
output, err = cmd.Output()
|
||||||
|
log.Println("output:", string(output))
|
||||||
|
log.Println("err:", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user