Exemple #1
0
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)
}
Exemple #2
0
func renderQuotePage(w http.ResponseWriter) {
	page := app.QuotePage{Quotes: app.MakeQuoteStore().GetAllByDocumentedDateDesc()}
	renderPage(w, "index", page)
}