Created
September 30, 2016 19:50
-
-
Save jessedearing/8d992e1ba8145b02e5709d7762f68ad9 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
connection, err := net.Dial("tcp", "example.com:80") | |
if err != nil { | |
// Do something to handle the error | |
return | |
} | |
defer connection.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment