Documentation
¶
Overview ¶
Package sz contains zettel data handling as sx expressions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Symbols for Metanodes SymMeta = sx.MakeSymbol("META") // Constant symbols for reference states. SymRefStateZettel = sx.MakeSymbol("ZETTEL") SymRefStateFound = sx.MakeSymbol("FOUND") SymRefStateBroken = sx.MakeSymbol("BROKEN") SymRefStateBased = sx.MakeSymbol("BASED") SymRefStateQuery = sx.MakeSymbol("QUERY") // Symbols for metadata types. SymTypeCredential = sx.MakeSymbol("CREDENTIAL") SymTypeEmpty = sx.MakeSymbol("EMPTY-STRING") SymTypeID = sx.MakeSymbol("ZID") SymTypeIDSet = sx.MakeSymbol("ZID-SET") SymTypeNumber = sx.MakeSymbol("NUMBER") SymTypeString = sx.MakeSymbol("STRING") SymTypeTagSet = sx.MakeSymbol("TAG-SET") SymTypeTimestamp = sx.MakeSymbol("TIMESTAMP") SymTypeURL = sx.MakeSymbol("URL") SymTypeWord = sx.MakeSymbol("WORD") )
Various constants for Zettel data. They are technically variables. These are only Zettelstore-specific symbols. The more general symbols are defined in t73f.de/r/zsx
Functions ¶
func GetReference ¶
GetReference returns the reference symbol and value.
func MakeReference ¶
MakeReference builds a reference node.
func ParsePlainBlocks ¶
ParsePlainBlocks parses the block as plain text with the given syntax.
Types ¶
type Meta ¶
Meta map metadata keys to MetaValue.
func GetMetaContent ¶
GetMetaContent returns the metadata and the content of a sz encoded zettel.
func MakeMeta ¶
MakeMeta build a Meta based on a list of metadata objects.
func (Meta) GetPair ¶
GetPair return the metadata value associated with the given key, as a list of objects.
Click to show internal directories.
Click to hide internal directories.