todolist

package
v0.0.0-...-192547a Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	FileName string
	// contains filtered or unexported fields
}

TODO can use ics.VTodo instead?

func TodoFromFile

func TodoFromFile(icsFile string) (*Todo, error)

func (*Todo) FormatLine

func (t *Todo) FormatLine() (string, error)

func (*Todo) FormatMultiLine

func (t *Todo) FormatMultiLine() (string, error)

func (*Todo) IsCompleted

func (t *Todo) IsCompleted() bool

func (*Todo) MarkCompleted

func (t *Todo) MarkCompleted() error

func (*Todo) MarkUncompleted

func (t *Todo) MarkUncompleted() error

func (*Todo) Serialize

func (t *Todo) Serialize() string

type TodoList

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

func FromDir

func FromDir() (*TodoList, error)

func (*TodoList) TodoByRefid

func (tl *TodoList) TodoByRefid(refid int) (*Todo, error)

func (*TodoList) Todos

func (tl *TodoList) Todos() []*Todo

Jump to

Keyboard shortcuts

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