togo

package module
v0.0.0-...-5a28bd7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

README

togo

A TODO app written in Go

Project plan

  • Save basic TODO items with a title and description
  • Add a due date
  • Sort by title
  • Sort by due date
  • Create a project and associate TODOs with a project
  • Add priority levels
  • Sort by date or priority + date
  • View upcoming TODOs
    • overall
    • per project
  • View overdue TODOs
    • overall
    • per project
  • Permanent storage
  • OpenAPI server and client generation
In-Memory Specifics
  • Don't copy tasks into the index, store a pointer

Documentation

Index

Constants

View Source
const (
	None   Priority = 0
	Low             = 1
	Medium          = 2
	High            = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Priority

type Priority int32

type Task

type Task struct {
	Name        string
	Description string
	Priority    Priority
	Created     time.Time
	Completed   *time.Time
	DueDate     *time.Time
}

func NewTask

func NewTask(name, description string) Task

func (*Task) AddDueDate

func (t *Task) AddDueDate(due time.Time)

AddDueDate strips off the time component and stores the result as the due date

func (*Task) Complete

func (t *Task) Complete()

func (*Task) CompletionDate

func (t *Task) CompletionDate() *time.Time

func (*Task) DueOn

func (t *Task) DueOn() *time.Time

func (*Task) IsCompleted

func (t *Task) IsCompleted() bool

func (*Task) Overdue

func (t *Task) Overdue() bool

type Tasks

type Tasks []Task

func (Tasks) Len

func (ts Tasks) Len() int

func (Tasks) Less

func (ts Tasks) Less(i, j int) bool

func (Tasks) Swap

func (ts Tasks) Swap(i, j int)

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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