Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeRenderer ¶
func NewNodeRenderer() gr.NodeRenderer
NewNodeRenderer returns a new Renderer with given options.
Types ¶
type Config ¶
type Config struct {
Writer WriterInterface
}
A Config struct has configurations for the Telegram based renderers.
type Entity ¶
type Entity struct { Type string `json:"type"` Offset int `json:"offset"` Length int `json:"length"` Url string `json:"url,omitempty"` }
Entity is a struct that represents a Telegram text entity
type NodeRenderer ¶
type NodeRenderer struct { Config // contains filtered or unexported fields }
NodeRenderer A Renderer struct is an implementation of renderer.NodeRenderer that renders Telegram
func (*NodeRenderer) RegisterFuncs ¶
func (r *NodeRenderer) RegisterFuncs(reg gr.NodeRendererFuncRegisterer)
RegisterFuncs implements NodeRenderer.RegisterFuncs .
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a basic LIFO stack that resizes as needed.
func (*Stack) GetLength ¶
GetLength returns the length of the stack starting from the current index to the end.
Click to show internal directories.
Click to hide internal directories.