Exemplo n.º 1
0
func meatList(w http.ResponseWriter, r *http.Request) {
	//_ := &MeatForm{name:"Hi there"}
	//meatsChan := api.GetMeats()
	//x := <- meatsChan

	template.Get("meat/list").Render(w, "")
}
Exemplo n.º 2
0
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, "")
}
Exemplo n.º 3
0
func meatDetail(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/detail").Render(w, "")
}
Exemplo n.º 4
0
func meatNewForm(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/new").Render(w, "")
}