lib

package
v0.0.0-...-0de8b76 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoldOpening = "<b>"
	BoldClosing = "</b>"

	ItalicOpening = "<i>"
	ItalicClosing = "</i>"

	MonoOpening = "<code>"
	MonoClosing = "</code>"
)

Variables

This section is empty.

Functions

func GetLinkMarkup

func GetLinkMarkup(name string, link string) string

func ToBold

func ToBold(str string) string

func ToCode

func ToCode(str string) string

func ToItalic

func ToItalic(str string) string

func ToTgHTML

func ToTgHTML(str string) fmtTG

Types

type TgHTML

type TgHTML struct {
	// contains filtered or unexported fields
}

func (*TgHTML) AppendBold

func (d *TgHTML) AppendBold(str string) fmtTG

func (*TgHTML) AppendItalic

func (d *TgHTML) AppendItalic(str string) fmtTG

func (*TgHTML) AppendMono

func (d *TgHTML) AppendMono(str string) fmtTG

func (*TgHTML) AppendNewLine

func (d *TgHTML) AppendNewLine() fmtTG

func (*TgHTML) GetCurrentData

func (d *TgHTML) GetCurrentData() string

func (*TgHTML) SetData

func (d *TgHTML) SetData(str string)

Jump to

Keyboard shortcuts

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