1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
"fmt"
"net"
)

var address_str string

func main() {
fmt.Scanln(&address_str)
_, err := net.Dial("tcp", address_str)
if err != nil {
fmt.Println(address_str + " is error,check it!!!")
}
}