hacker-quotes/frontend/home.go

15 lines
221 B
Go
Raw Permalink Normal View History

package frontend
import (
"net/http"
)
func (f *Frontend) home(w http.ResponseWriter, r *http.Request) {
2021-02-14 13:49:11 -08:00
words, err := f.hq.Hack()
if err != nil {
w.Write([]byte(err.Error()))
return
}
w.Write([]byte(words))
}