thoughts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package thoughts provides a jot pad like set of functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Thought

type Thought struct {
	Text    string
	Created time.Time
}

High level thought that has been Captured to then triage later

type ThoughtPad

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

Capture thoughts for later processing into tasks, reminders, habits &c.

func GetThoughtPad added in v0.2.0

func GetThoughtPad() (*ThoughtPad, error)

GetThoughtPad provides a pointer to the active thought pad

func (*ThoughtPad) Add

func (t *ThoughtPad) Add(text string) error

Add a new thought to the thought pad

func (*ThoughtPad) ClearAll added in v0.2.0

func (t *ThoughtPad) ClearAll()

ClearAll removes all thoughts from the pad

func (*ThoughtPad) GetAll

func (t *ThoughtPad) GetAll() []Thought

GetAll returns a slice of the captured thoughts

func (*ThoughtPad) Load added in v0.2.0

func (t *ThoughtPad) Load() error

Load the contents of thought pad from fs

func (*ThoughtPad) Save added in v0.2.0

func (t *ThoughtPad) Save() error

Save saves the contents of the thought pad to fs

Jump to

Keyboard shortcuts

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