gofmt -s; fix misspellings and lint; Go 1.5.3 in Travis CI

This commit is contained in:
Matthew Holt
2016-02-14 00:10:57 -07:00
parent a11e14aca8
commit cae9f7de9c
16 changed files with 61 additions and 62 deletions

View File

@ -102,7 +102,8 @@ func SetLastModifiedHeader(w http.ResponseWriter, modTime time.Time) {
w.Header().Set("Last-Modified", modTime.UTC().Format(http.TimeFormat))
}
// currentTime returns time.Now() everytime it's called. It's used for mocking in tests.
// currentTime, as it is defined here, returns time.Now().
// It's defined as a variable for mocking time in tests.
var currentTime = func() time.Time {
return time.Now()
}