conn.go
func DialTo(addr string) (*Conn, error) {

	const network = "tcp"

	if "" == addr {
		addr = "127.0.0.1:telnet"
	}

	conn, err := net.Dial(network, addr)
	if nil != err {
		return nil, err
	}

	dataReader := newDataReader(conn)
	dataWriter := newDataWriter(conn)

	clientConn := Conn{
		conn:conn,
		dataReader:dataReader,
		dataWriter:dataWriter,
	}

	return &clientConn, nil
}
func DialTo(addr string) (*Conn, error) {

	const network = "tcp"

	if "" == addr {
		addr = "127.0.0.1:telnet"
	}

	conn, err := net.Dial(network, addr)
	if nil != err {
		return nil, err
	}

	dataReader := newDataReader(conn)
	dataWriter := newDataWriter(conn)

	clientConn := Conn{
		conn:conn,
		dataReader:dataReader,
		dataWriter:dataWriter,
	}

	return &clientConn, nil
}
// DialTo makes a (un-secure) TELNET client connection to the the address specified by
// 'addr'.
//
// If a secure connection is desired, use `DialToTLS` instead.