task

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsList

func IsList(name string) bool

Types

type List

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

func OpenList

func OpenList(name string) *List

func (*List) All

func (l *List) All() ([]*Task, error)

func (*List) Create

func (l *List) Create(id string, now time.Time, hdr map[string]string, comment []byte) (*Task, error)

func (*List) Done

func (l *List) Done() ([]*Task, error)

func (*List) Exists

func (l *List) Exists(id string) bool

func (*List) Name

func (l *List) Name() string

func (*List) Read

func (l *List) Read(id string) (*Task, error)

func (*List) Search

func (l *List) Search(q string) ([]*Task, error)

func (*List) Sublists

func (l *List) Sublists() []string

func (*List) Write

func (l *List) Write(t *Task, now time.Time, hdr map[string]string, comment []byte) error

type Task

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

func Common

func Common(tasks []*Task) *Task

func (*Task) Done

func (t *Task) Done() bool

func (*Task) EIDs

func (t *Task) EIDs() []string

func (*Task) Header

func (t *Task) Header(key string) string

func (*Task) ID

func (t *Task) ID() string

func (*Task) PrintTo

func (t *Task) PrintTo(w io.Writer)

func (*Task) Title

func (t *Task) Title() string

Jump to

Keyboard shortcuts

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