plan

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryType

type EntryType int8

EntryType represents a plan file's entry type

const (
	// Note is an entry with no prefix
	Note EntryType = iota
	// Done is something completed on the same day.
	Done
	// Completed is something completed on a later day.
	Completed
	// Canceled is something decided against on a later day.
	Canceled
)

type Plan

type Plan struct {
	Done      []string
	Completed []string
	Canceled  []string
	Notes     []string
}

Plan contains all the entries, divided in Done, Completed, Canceled, and Notes.

func Load

func Load(path string) (Plan, error)

Load loads a plan file.

func (*Plan) Add

func (p *Plan) Add(entry string, typ EntryType)

Add adds a new entry to the plan.

func (Plan) String

func (p Plan) String() string

Jump to

Keyboard shortcuts

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