todo

package
v0.0.0-...-3894ed3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(w http.ResponseWriter, r *http.Request)

func RepoDestroyTodo

func RepoDestroyTodo(id int) error

func RepoGetTodos

func RepoGetTodos() interface{}

func TodoCreate

func TodoCreate(w http.ResponseWriter, r *http.Request)

func TodoIndex

func TodoIndex(w http.ResponseWriter, r *http.Request)

func TodoShow

func TodoShow(w http.ResponseWriter, r *http.Request)

Types

type Todo

type Todo struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	Completed bool      `json:"completed"`
	Due       time.Time `json:"due"`
}

func RepoCreateTodo

func RepoCreateTodo(t Todo) Todo

func RepoFindTodo

func RepoFindTodo(id int) Todo

type Todos

type Todos []Todo

Jump to

Keyboard shortcuts

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