models

package
v0.0.0-...-c4a95e0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	// contains filtered or unexported fields
}

func InitTask

func InitTask(dbName string) (*Task, error)

func (*Task) Add

func (t *Task) Add(todo string) error

func (*Task) Delete

func (t *Task) Delete(id string) error

func (*Task) List

func (t *Task) List() ([]Todo, error)

type Todo

type Todo struct {
	ID          []byte
	Description string
}

Jump to

Keyboard shortcuts

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