Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Proper error handling?

Received: by 10.180.94.98 with SMTP id db2mr1199394wib.2.1351170454107;
        Thu, 25 Oct 2012 06:07:34 -0700 (PDT)
X-BeenThere: golang-nuts@googlegroups.com
Received: by 10.180.20.136 with SMTP id n8ls5889329wie.3.gmail; Thu, 25 Oct
 2012 06:07:04 -0700 (PDT)
Received: by 10.180.105.41 with SMTP id gj9mr1192792wib.3.1351170424919;
        Thu, 25 Oct 2012 06:07:04 -0700 (PDT)
Received: by 10.180.105.41 with SMTP id gj9mr1192791wib.3.1351170424908;
        Thu, 25 Oct 2012 06:07:04 -0700 (PDT)
Return-Path: <mi...@atoom.net>
Received: from elektron.atoom.net (elektron.atoom.net. [85.223.71.124])
        by gmr-mx.google.com with ESMTP id hm1si515316wib.3.2012.10.25.06.07.04;
        Thu, 25 Oct 2012 06:07:04 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of mi...@atoom.net designates 85.223.71.124 as permitted sender) client-ip=85.223.71.124;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mi...@atoom.net designates 85.223.71.124 as permitted sender) smtp.mail=mi...@atoom.net
Received: by elektron.atoom.net (Postfix, from userid 1000)
	id 7885E4003F; Thu, 25 Oct 2012 15:07:04 +0200 (CEST)
Date: Thu, 25 Oct 2012 15:07:04 +0200
From: Miek Gieben <m...@miek.nl>
To: golang-nuts@googlegroups.com
Subject: Re: [go-nuts] Proper error handling?
Message-ID: <20121025130704.GB6204@miek.nl>
Mail-Followup-To: golang-nuts@googlegroups.com
References: <507B8455.1050609@epipe.com>
 <5089389C.4000003@epipe.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="OwLcNYc0lM97+oe1"
Content-Disposition: inline
In-Reply-To: <5089389C.4000003@epipe.com>
User-Agent: Vim/Mutt/Linux
X-Home: http://www.miek.nl


--OwLcNYc0lM97+oe1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[ Quoting <sn...@epipe.com> in "Re: [go-nuts] Proper error handling..." ]
> On 2012-10-15 10:34, Janne Snabb wrote:
>=20
> > Right now I am implementing some code where I do DNS lookups and need to
> > detect "host not found" error condition and handle it specially. How do
> > I do this?
>=20
> I am replying to myself to update this thread just for the benefit of
> others who might need to do DNS lookups in Go and find this thread later
> on with a search engine or something.
>=20
> I found a great Go DNS library at: https://github.com/miekg/dns
>=20
> It returns proper error codes in addition to implementing everything DNS
> related anyone might ever need.

   thank you :-)

grtz Miek

--OwLcNYc0lM97+oe1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlCJOXgACgkQJYuFzziA0PaT2QCZASe5a3WI6x/HE1nYsfjnj0Dt
4NUAn2+bgShRXcbDAIQQMU6vnC0R9SPO
=U35q
-----END PGP SIGNATURE-----

--OwLcNYc0lM97+oe1--