ast

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindEmphasis = gast.NewNodeKind("Emphasis")

KindEmphasis is a NodeKind of the Emphasis node.

View Source
var KindSpoiler = gast.NewNodeKind("Spoiler")

KindSpoiler is a NodeKind of the Spoiler node.

View Source
var KindStrikethrough = gast.NewNodeKind("Strikethrough")

KindStrikethrough is a NodeKind of the Strikethrough node.

View Source
var KindTemplate = gast.NewNodeKind("Template")

KindTemplate is a NodeKind of the Template node.

Functions

This section is empty.

Types

type Emphasis

type Emphasis struct {
	gast.BaseInline

	Delimiter byte
	Level     int
}

A Emphasis struct represents a emphasis of Telegram Markdown text.

func NewEmphasis

func NewEmphasis(delimiter byte, level int) *Emphasis

NewEmphasis returns a new Emphasis node.

func (*Emphasis) Dump

func (n *Emphasis) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Emphasis) Kind

func (n *Emphasis) Kind() gast.NodeKind

Kind implements Node.Kind.

type Spoiler

type Spoiler struct {
	gast.BaseInline
}

A Spoiler struct represents a spoiler of Telegram MarkdownV2 text.

func NewSpoiler

func NewSpoiler() *Spoiler

NewSpoiler returns a new Spoiler node.

func (*Spoiler) Dump

func (n *Spoiler) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Spoiler) Kind

func (n *Spoiler) Kind() gast.NodeKind

Kind implements Node.Kind.

type Strikethrough

type Strikethrough struct {
	gast.BaseInline
}

A Strikethrough struct represents a strikethrough of Telegram MarkdownV2 text.

func NewStrikethrough

func NewStrikethrough() *Strikethrough

NewStrikethrough returns a new Strikethrough node.

func (*Strikethrough) Dump

func (n *Strikethrough) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Strikethrough) Kind

func (n *Strikethrough) Kind() gast.NodeKind

Kind implements Node.Kind.

type Template

type Template struct {
	gast.BaseInline

	Segment textm.Segment
}

A Template struct represents a Go template like {{ if eq .Status "firing" }}.

func NewTemplate

func NewTemplate() *Template

NewTemplate returns a new Template node.

func (*Template) Dump

func (n *Template) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Template) Kind

func (n *Template) Kind() gast.NodeKind

Kind implements Node.Kind.

Jump to

Keyboard shortcuts

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