func meatList(w http.ResponseWriter, r *http.Request) { //_ := &MeatForm{name:"Hi there"} //meatsChan := api.GetMeats() //x := <- meatsChan template.Get("meat/list").Render(w, "") }
func userLoginForm(w http.ResponseWriter, r *http.Request) { s := session.Get(w, r) if s.IsAuthenticated() { fmt.Fprintln(w, "You are authed!") } template.Get("user/login").Render(w, "") }
func meatDetail(w http.ResponseWriter, r *http.Request) { template.Get("meat/detail").Render(w, "") }
func meatNewForm(w http.ResponseWriter, r *http.Request) { template.Get("meat/new").Render(w, "") }