glyph

package
v0.0.0-...-ddd2cd8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Task            Bullet = "task"
	Completed       Bullet = "comp"
	MovedCollection Bullet = "movc"
	MovedFuture     Bullet = "movf"
	Irrelevant      Bullet = "irev"
	Note            Bullet = "note"
	Event           Bullet = "evnt"
	Any             Bullet = "any"
	Occurrence      Bullet = "occr"

	Priority      Signifier = "pri0"
	Inspiration   Signifier = "insp"
	Investigation Signifier = "inst"
	None          Signifier = "none"
)

These values are what is stored into the database. Do not change unless you are ok with loosing data.

Variables

This section is empty.

Functions

func DefaultBullets

func DefaultBullets() map[Bullet]Glyph

func DefaultSignifiers

func DefaultSignifiers() map[Signifier]Glyph

Types

type Bullet

type Bullet string

func BulletForAlias

func BulletForAlias(alias string) (Bullet, error)

func (Bullet) Glyph

func (b Bullet) Glyph() Glyph

func (Bullet) String

func (b Bullet) String() string

type ByOrder

type ByOrder []Glyph

func (ByOrder) Len

func (o ByOrder) Len() int

func (ByOrder) Less

func (o ByOrder) Less(i, j int) bool

func (ByOrder) Swap

func (o ByOrder) Swap(i, j int)

type Glyph

type Glyph struct {
	Symbol    string
	Meaning   string
	Noun      string
	Aliases   []string
	Signifier bool
	Printed   bool
	Order     int
}

func (Glyph) String

func (g Glyph) String() string

type Signifier

type Signifier string

func (Signifier) Glyph

func (s Signifier) Glyph() Glyph

func (Signifier) String

func (s Signifier) String() string

Jump to

Keyboard shortcuts

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