Versions in this module Expand all Collapse all v0 v0.8.1 Aug 3, 2018 Changes in this version + const ISO8601_TIMESTAMP_FORMAT + const S3URL + const VERSION + func AddIfNotThere(arr []string, items []string) []string + func GetTodos(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func IndexScaffold(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func RedirectScaffold(w http.ResponseWriter, r *http.Request) + func RedirectToIndex(w http.ResponseWriter, r *http.Request) + func SaveTodos(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func TodoOptions(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + type App struct + Printer Printer + TodoList *TodoList + TodoStore Store + func NewApp() *App + func (a *App) AddDoneTodo(input string) + func (a *App) AddTodo(input string) + func (a *App) ArchiveCompleted() + func (a *App) ArchiveTodo(input string) + func (a *App) CompleteTodo(input string) + func (a *App) DeleteTodo(input string) + func (a *App) EditTodo(input string) + func (a *App) ExpandTodo(input string) + func (a *App) GarbageCollect() + func (a *App) HandleNotes(input string) + func (a *App) InitializeRepo() + func (a *App) ListTodos(input string) + func (a *App) Load() error + func (a *App) PrioritizeTodo(input string) + func (a *App) Save() + func (a *App) UnarchiveTodo(input string) + func (a *App) UncompleteTodo(input string) + func (a *App) UnprioritizeTodo(input string) + type ByDate []*Todo + func (a ByDate) Len() int + func (a ByDate) Less(i, j int) bool + func (a ByDate) Swap(i, j int) + type DateFilter struct + Location *time.Location + Todos []*Todo + func NewDateFilter(todos []*Todo) *DateFilter + func (f *DateFilter) FilterDate(input string) []*Todo + func (f *DateFilter) FindSunday(pivot time.Time) time.Time + type FileStore struct + FileLocation string + Loaded bool + func NewFileStore() *FileStore + func (f *FileStore) Initialize() + func (f *FileStore) Load() ([]*Todo, error) + func (f *FileStore) Save(todos []*Todo) + type GroupedTodos struct + Groups map[string][]*Todo + type Grouper struct + func (g *Grouper) GroupByContext(todos []*Todo) *GroupedTodos + func (g *Grouper) GroupByNothing(todos []*Todo) *GroupedTodos + func (g *Grouper) GroupByProject(todos []*Todo) *GroupedTodos + type MemoryPrinter struct + Groups *GroupedTodos + func (m *MemoryPrinter) Print(groupedTodos *GroupedTodos, printNotes bool) + type MemoryStore struct + Todos []*Todo + func NewMemoryStore() *MemoryStore + func (m *MemoryStore) Initialize() + func (m *MemoryStore) Load() ([]*Todo, error) + func (m *MemoryStore) Save(todos []*Todo) + type Parser struct + func (p *Parser) Contexts(input string) []string + func (p *Parser) Due(input string, day time.Time) string + func (p *Parser) ExpandProject(input string) string + func (p *Parser) ParseAddNote(todo *Todo, input string) bool + func (p *Parser) ParseDeleteNote(todo *Todo, input string) bool + func (p *Parser) ParseEditNote(todo *Todo, input string) bool + func (p *Parser) ParseEditTodo(todo *Todo, input string) bool + func (p *Parser) ParseNewTodo(input string) *Todo + func (p *Parser) ParseShowNote(todo *Todo, input string) bool + func (p *Parser) Projects(input string) []string + func (p *Parser) Subject(input string) string + type Printer interface + Print func(*GroupedTodos, bool) + type ScreenPrinter struct + Writer *tabwriter.Writer + func NewScreenPrinter() *ScreenPrinter + func (f *ScreenPrinter) Print(groupedTodos *GroupedTodos, printNotes bool) + type Store interface + Initialize func() + Load func() ([]*Todo, error) + Save func(todos []*Todo) + type Todo struct + Archived bool + Completed bool + CompletedDate string + Contexts []string + Due string + Id int + IsPriority bool + Notes []string + Projects []string + Subject string + func AddTodoIfNotThere(arr []*Todo, item *Todo) []*Todo + func NewTodo() *Todo + func (t *Todo) Archive() + func (t *Todo) Complete() + func (t *Todo) Prioritize() + func (t *Todo) Unarchive() + func (t *Todo) Uncomplete() + func (t *Todo) Unprioritize() + func (t Todo) CalculateDueTime() time.Time + func (t Todo) CompletedDateToDate() string + func (t Todo) Valid() bool + type TodoFilter struct + Todos []*Todo + func NewFilter(todos []*Todo) *TodoFilter + func (f *TodoFilter) Filter(input string) []*Todo + type TodoList struct + Data []*Todo + func (t *TodoList) Add(todo *Todo) + func (t *TodoList) Archive(ids ...int) + func (t *TodoList) Complete(ids ...int) + func (t *TodoList) Delete(ids ...int) + func (t *TodoList) FindById(id int) *Todo + func (t *TodoList) GarbageCollect() + func (t *TodoList) IndexOf(todoToFind *Todo) int + func (t *TodoList) Load(todos []*Todo) + func (t *TodoList) MaxId() int + func (t *TodoList) NextId() int + func (t *TodoList) Prioritize(ids ...int) + func (t *TodoList) Todos() []*Todo + func (t *TodoList) Unarchive(ids ...int) + func (t *TodoList) Uncomplete(ids ...int) + func (t *TodoList) Unprioritize(ids ...int) + type Webapp struct + Router *httprouter.Router + func NewWebapp() *Webapp + func (w *Webapp) Run()