From 0dd0a41c4da3f75e91d59e4415c5b1c701b20c68 Mon Sep 17 00:00:00 2001 From: Bains Date: Wed, 22 Feb 2017 17:12:22 +0000 Subject: [PATCH] goimports --- main.go | 2 +- url.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 15170ab..7a5dfb0 100644 --- a/main.go +++ b/main.go @@ -127,7 +127,7 @@ func main() { } rawInput = r } else { - r, err := getURL(filename,insecureFlag) + r, err := getURL(filename, insecureFlag) if err != nil { fatal(exitFetchURL, err) } diff --git a/url.go b/url.go index 32cfcfa..a2e10f9 100644 --- a/url.go +++ b/url.go @@ -2,12 +2,12 @@ package main import ( "bufio" + "crypto/tls" "fmt" "io" "net/http" "regexp" "time" - "crypto/tls" ) func validURL(url string) bool { @@ -17,11 +17,11 @@ func validURL(url string) bool { func getURL(url string, insecure bool) (io.Reader, error) { tr := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure}, - } + TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure}, + } client := http.Client{ Transport: tr, - Timeout: 20 * time.Second, + Timeout: 20 * time.Second, } req, err := http.NewRequest("GET", url, nil)