Skip to content

Commit

Permalink
Finish example
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg committed Mar 23, 2013
1 parent 6a928b3 commit 2e55bd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tutorial1/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ func main() {
defer u.Destroy()

u.ResolvConf("/etc/resolv.conf")
r, err := u.LookupHost("www.nlnetlabs.nl")
a, err := u.LookupHost("www.nlnetlabs.nl")
if err != nil {
log.Fatalf("error %s\n", err.Error())
}
fmt.Printf("%+v\n", r)
for _, a1 := range a {
fmt.Printf("The address is %s\n", a1)
}
}

0 comments on commit 2e55bd3

Please sign in to comment.