controllers

package
v0.0.0-...-c83dff7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTodo

func NewTodo() controller.Controller

NewTodo returns a new todo list controller

Types

type Todo

type Todo struct {
	controller.BaseController
	Routes []string
}

Todo is a controller for Todo list

func (*Todo) Create

func (t *Todo) Create()

Create creates a todo item

func (*Todo) Delete

func (t *Todo) Delete()

Delete deletes a todo item

func (*Todo) Home

func (t *Todo) Home()

Home renders a todo list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL