Skip to content

Instantly share code, notes, and snippets.

@discordianfish
Created June 4, 2015 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discordianfish/467ea55ae86426815a21 to your computer and use it in GitHub Desktop.
Save discordianfish/467ea55ae86426815a21 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"net/http"
)
func main() {
_, err := http.Get("https://registry-1.docker.io")
if err != nil {
log.Println(err)
} else {
log.Println("No error")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment