drtodo

package module
v0.0.0-...-f8ec87a Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrListNotFound = errors.New("list not found")

Functions

func FormatDate

func FormatDate(date time.Time) string

func GetSortedListPaths

func GetSortedListPaths(path string) ([]string, error)

func ParseDate

func ParseDate(input string) (time.Time, error)

Types

type DrTodo

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

func New

func New(homePath string) DrTodo

func (DrTodo) CreateToday

func (dt DrTodo) CreateToday() (string, error)

type List

type List struct {
	Name     string
	Sublists []List
	Todos    []Todo
}

func GetLatestList

func GetLatestList(path string) (List, error)

func ParseList

func ParseList(name string, reader io.Reader) (List, error)

func (List) Dump

func (l List) Dump(w io.Writer, omitCompleted bool) error

type Todo

type Todo struct {
	Name      string
	Completed bool
}

func ParseTodo

func ParseTodo(input string) (Todo, error)

func (Todo) String

func (t Todo) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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