task

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBoard = "My Board"

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage []Task

func (Storage) ContainsTask

func (tasks Storage) ContainsTask(id int) bool

func (*Storage) DeleteTask

func (tasks *Storage) DeleteTask(id int) bool

func (Storage) GetHighestId

func (tasks Storage) GetHighestId() int

func (Storage) GetNextId

func (tasks Storage) GetNextId() int

func (Storage) GetTask

func (tasks Storage) GetTask(id int) *Task

func (Storage) Save

func (tasks Storage) Save() error

type Task

type Task struct {
	Id          int      `json:"id"`
	Description string   `json:"description"`
	Boards      []string `json:"boards"`
	Note        bool     `json:"note"`
	Done        bool     `json:"complete"`
	Urgent      bool     `json:"urgent"`
}

func LoadStorage

func LoadStorage() ([]Task, error)

func (Task) Print

func (task Task) Print(indent int)

Jump to

Keyboard shortcuts

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