var dateRE … var dateFormat … // uploadReportDate returns the date component of the upload file name, or "" if the // date was unmatched. func (u *uploader) uploadReportDate(fname string) time.Time { … } func (u *uploader) uploadReport(fname string) { … } // try to upload the report, 'true' if successful func (u *uploader) uploadReportContents(fname string, buf []byte) bool { … }