todo

package
v0.0.0-...-358476e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToDo

type ToDo interface {
	Initialise() error
	Create(Text string, Done bool) (*string, error)
	Update(id string, text string, Done bool) error
	Get(id string) (*ToDoItem, error)
	GetAll() ([]ToDoItem, error)
	Delete(id string) (*string, error)
}

type ToDoItem

type ToDoItem struct {
	Id        string
	Text      string
	Done      bool
	CreatedOn time.Time
	UpdatedOn *time.Time
}

Jump to

Keyboard shortcuts

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