func handleClient(conn *net.IPConn) { var buf [512]byte n, addr, err := conn.ReadFromIP(buf[0:]) if err != nil { return } fmt.Println("Receive from client", addr.string(), string(buf[0:n])) conn.WriteToIP([]byte("Welcome Client!"), addr) }