package network import ( // "fmt" "testing" ) func Test_Ping(t *testing.T) { str := "10.0.100.10" ret := Ping(str) fmt.Println(ret) } func Test_CanConnect(t *testing.T) { ip := "10.0.106.212" port := "" ret := CanConnect(ip, port) t.Log(ret) }