task

package
v0.0.0-...-c85b86a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 0 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 {
	ID   string `json:"id"`
	Text string `json:"text"`
}

task represents data about a task

type TasksStore

type TasksStore interface {
	GetAll() []Task
	GetTask(string) (Task, bool)
	Remove(string) bool
	RemoveAll() bool
	Add(Task) bool
}

task store is the interface to implemente by any task data storage

Jump to

Keyboard shortcuts

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