Created
December 2, 2017 00:52
-
-
Save yu81/d4913af295a4374101f619315a177de3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arpa, err := reverseaddr("256.0.0.1") // IPアドレスとして解釈してはいけないのでエラーであることを期待 | |
if dnsErr, ok := err.(*DNSError); ok { | |
// DNS関連のエラーであることを前提とした処理・ログ出力等 | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment