// Connect tried to establish connection given an address
Connect tried to establish connection given an address
// Connect tried to establish connection given an address
func Connect(address string) (*Connection, error) {
	connClient, err := net.Dial("tcp", address)
	if err != nil {
		return nil, fmt.Errorf("failed to connect to address %s: %s", address, err)
	}
	return &Connection{Conn: connClient}, nil
}
func Connect ( address string ) ( * Connection , error ) { connClient , err := net . Dial ( " " , address ) if err != nil { return nil , fmt . Errorf ( " " , address , err ) } return & Connection { Conn : connClient } , nil }
Connect tried to establish connection given an address
Connect tried to establish connection given an address