Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TokenTypeText = TokenType{"text"} TokenTypeLink = TokenType{"link"} TokenTypeNostrLink = TokenType{"nostrLink"} )
View Source
var ( ElementTypeText = ElementType{"text"} ElementTypeLink = ElementType{"link"} )
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { Type ElementType Text string }
type ElementType ¶
type ElementType struct {
// contains filtered or unexported fields
}
type Transformer ¶
type Transformer struct { }
func NewTransformer ¶
func NewTransformer() *Transformer
func (*Transformer) BreakdownAndTransform ¶
func (t *Transformer) BreakdownAndTransform(content string) ([]Element, error)
Click to show internal directories.
Click to hide internal directories.