package main import ( "time" ) /* post.File = file post.Title = title post.Date = date post.Tags = tags */ // use this to check for valid feed: https://validator.w3.org/feed/ func generateFeed(domain string, posts []*Post) []byte { feed := ` ScerbaDotOrg Blog feed Alex Scerba https://` + domain + `/ ` + time.Now().UTC().Format("2006-01-02T15:04:05.000Z") + `` for _, post := range posts { entry := ` ` + post.Title + `