func (p *PageTodo) Index(w http.ResponseWriter, r *http.Request) { todos, err := models.GetTodoLists() if err != nil { fmt.Println(err) } p.Body = todos }
func (p *PageTodo) Index() { todos, err := models.GetTodoLists() if err != nil { fmt.Println(err) } p.Body = todos }