func storeQuote(w http.ResponseWriter, content string, author string) { quote := app.Quote{ Content: content, Author: author, Documentor: "Unknown", DocumentedDate: time.Now()} app.MakeQuoteStore().Save(quote) }
func renderQuotePage(w http.ResponseWriter) { page := app.QuotePage{Quotes: app.MakeQuoteStore().GetAllByDocumentedDateDesc()} renderPage(w, "index", page) }