Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
Document is a parsed orgmode file. It contains an optional preamble (text before the first heading) and a sequence of top-level headings.
type Heading ¶
type Heading struct {
Level int
Keyword string // TODO, DONE, etc.
Title string
Tags []string
Properties Properties
Body string
Children []Heading
}
Heading is a single org heading node. Nesting is represented by Level (1 = *, 2 = **, etc.). Subheadings are children.
type Properties ¶
type Properties []Property
Properties is the :PROPERTIES: drawer content as ordered key-value pairs.
func (Properties) Get ¶
func (props Properties) Get(key string) (string, bool)
Get returns the value for a key and whether it was found.
func (*Properties) Set ¶
func (props *Properties) Set(key, value string)
Set sets a key-value pair, replacing an existing key or appending.
Source Files
¶
- main.go
Click to show internal directories.
Click to hide internal directories.