· 6 years ago · Oct 05, 2019, 07:12 PM
1package main 2 3import ( 4 "fmt" 5 "os/exec" 6) 7 8func main() { 9 link := "yandex.ru" 10 res, _ := exec.Command("traceroute", "-I",link).Output() 11 fmt.Println(string(res)) 12}