Extract method to output entries

This commit is contained in:
Peter Stuifzand 2019-12-22 11:33:24 +01:00
parent 0be444aa29
commit e6c4095e78

View File

@ -29,6 +29,10 @@ func main() {
items = filterEntriesAfter(items, now.With(time.Now()).Monday())
outputEntries(items)
}
func outputEntries(items []microsub.Item) {
t, err := template.ParseFiles("templates/weekly.html")
if err != nil {
log.Fatal(err)