Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { OpenDatabase() error CreateTable() error DisplayAllTodos() ([]Todo, error) GetTodo(id string) (Todo, error) InsertTodo(name, description, tasks string) error UpdateTodo(id int, todo Todo) error DeleteTodo(id string) error }
func NewDatabase ¶
func NewDatabase() Database
Click to show internal directories.
Click to hide internal directories.