string
and []byte
http.NoBody
instead of nil
in http.NewRequest
calls%q
to quote a string in fmt.Sprintf
format specifiersfilepath.Join()
function callsfor
loop with call to copy
for slicetime.Now().Sub(t)
instead of time.Since(t)
if
can be replaced with else if
error
construction with fmt.Errorf
nil
check around loopswitch
with single case can be rewritten as if
or if-else