Skip to content

Commit

Permalink
address golint nit
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Cheney <dave@cheney.net>
  • Loading branch information
davecheney committed Jul 16, 2018
1 parent 3b8c20b commit e043eda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
)

const (
HTTPSTemplate = `` +
httpsTemplate = `` +
` DNS Lookup TCP Connection TLS Handshake Server Processing Content Transfer` + "\n" +
`[%s | %s | %s | %s | %s ]` + "\n" +
` | | | | |` + "\n" +
Expand All @@ -38,7 +38,7 @@ const (
` starttransfer:%s |` + "\n" +
` total:%s` + "\n"

HTTPTemplate = `` +
httpTemplate = `` +
` DNS Lookup TCP Connection Server Processing Content Transfer` + "\n" +
`[ %s | %s | %s | %s ]` + "\n" +
` | | | |` + "\n" +
Expand Down Expand Up @@ -340,7 +340,7 @@ func visit(url *url.URL) {

switch url.Scheme {
case "https":
printf(colorize(HTTPSTemplate),
printf(colorize(httpsTemplate),
fmta(t1.Sub(t0)), // dns lookup
fmta(t2.Sub(t1)), // tcp connection
fmta(t6.Sub(t5)), // tls handshake
Expand All @@ -353,7 +353,7 @@ func visit(url *url.URL) {
fmtb(t7.Sub(t0)), // total
)
case "http":
printf(colorize(HTTPTemplate),
printf(colorize(httpTemplate),
fmta(t1.Sub(t0)), // dns lookup
fmta(t3.Sub(t1)), // tcp connection
fmta(t4.Sub(t3)), // server processing
Expand Down

0 comments on commit e043eda

Please sign in to comment.