orgo

package module
v0.0.0-...-55a26e9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeadingNodeType = "Heading"
	SourceNodeType  = "Source"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Metadata
	Nodes []Node
}

func Parse

func Parse(r io.Reader) *Document

type HeadingNode

type HeadingNode struct {
	Title         string
	Level         int
	Todo          string
	Tags          []string
	Properties    map[string]any
	ScheduledTime *time.Time
	DeadlineTime  *time.Time
	Logbook       []LogbookEntry
	Children      []Node
}

func (*HeadingNode) Type

func (n *HeadingNode) Type() string

type LogbookEntry

type LogbookEntry struct {
	From time.Time
	To   *time.Time
}

type Metadata

type Metadata struct {
	Title        string
	Author       string
	Tags         map[string][]string
	TodoKeywords []TodoKeyword
	Properties   map[string]string
}

type Node

type Node interface {
	Type() string
}

type SourceNode

type SourceNode struct {
	Language   string
	Properties map[string]string
	Content    string
}

func (*SourceNode) Type

func (n *SourceNode) Type() string

type TodoKeyword

type TodoKeyword struct {
	Pre  []string
	Post []string
}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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