package main
import (
"fmt"
"net"
)
func main() {
conn, err := net.Dial("ip:icmp", "www.domain.net")
if err != nil {
fmt.Println(err)
return
}
add := conn.RemoteAddr()
fmt.Printf("add string:", add.String())
}
有疑问加站长微信联系(非本文作者))