How it works...

This recipe performed a CNAME and host lookup of the address provided. In our case, we used golang.org. We store the result in a lookup structure that prints the output results using the String() method. This method will be called automatically when we print our object as a string, or we can call the method directly. We implement some basic argument checking in main.go to ensure that an address is provided when the program is run.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.132.223