Documentation ¶ Index ¶ type EntryType type Plan func Load(path string) (Plan, error) func (p *Plan) Add(entry string, typ EntryType) func (p Plan) String() string 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 Source Files ¶ View all Source files plan.go Click to show internal directories. Click to hide internal directories.