Skip to content

Instantly share code, notes, and snippets.

@priesdelly
Last active May 5, 2021 06:59
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 priesdelly/3a0f5c46d5a52de54eda6e245a66da98 to your computer and use it in GitHub Desktop.
Save priesdelly/3a0f5c46d5a52de54eda6e245a66da98 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
"crypto/tls"
)
func main() {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
if err != nil {
fmt.Println(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment