var distantPast … // reports that are too old (21 days) are not uploaded func (u *uploader) tooOld(date string, uploadStartTime time.Time) bool { … } // counterDateSpan parses the counter file named fname and returns the (begin, // end) span recorded in its metadata, or an error if this data could not be // extracted. func (u *uploader) counterDateSpan(fname string) (begin, end time.Time, _ error) { … } type parsedCache … func (u *uploader) parseCountFile(fname string) (*counter.File, error) { … }