pet-house/core/helper/ping/example/main.go

16 lines
205 B
Go

package main
import (
"fmt"
"pet-house.com/core/helper/ping"
)
func main() {
ip := "10.0.0.113"
ok, msg := ping.GetPingMsg(ip)
if !ok {
fmt.Printf("%s ping is fault,get msg %s \n", ip, msg)
}
}