wotoStyle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appender

type Appender func(s string) styling.StyledTextOption

type WStyle

type WStyle interface {
	Append(md WStyle) WStyle
	AppendThis(md WStyle) WStyle
	AppendNormal(v string) WStyle
	AppendNormalThis(v string) WStyle
	AppendBold(v string) WStyle
	AppendBoldThis(v string) WStyle
	AppendItalic(v string) WStyle
	AppendItalicThis(v string) WStyle
	AppendMono(v string) WStyle
	AppendMonoThis(v string) WStyle
	AppendSpoiler(v string) WStyle
	AppendSpoilerThis(v string) WStyle
	AppendHyperLink(text, url string) WStyle
	AppendHyperLinkThis(text, url string) WStyle
	AppendMention(text string, id int64) WStyle
	AppendMentionThis(text string, id int64) WStyle
	AppendUserMention(text string, u *tg.User) WStyle
	AppendUserMentionThis(text string, u *tg.User) WStyle
	AppendMentionHash(text string, u, hash int64) WStyle
	AppendMentionHashThis(text string, u, hash int64) WStyle
	AppendMentionUsername(text string, username string) WStyle
	AppendMentionUsernameThis(text string, username string) WStyle

	Normal(v string) WStyle
	Bold(v string) WStyle
	Italic(v string) WStyle
	Mono(v string) WStyle
	Spoiler(v string) WStyle
	Link(text, url string) WStyle
	Mention(text string, id int64) WStyle
	MentionHash(text string, u, hash int64) WStyle
	UserMention(text string, u *tg.User) WStyle
	MentionUsername(text string, username string) WStyle

	El() WStyle
	ElThis() WStyle
	Space() WStyle
	SpaceThis() WStyle
	Tab() WStyle
	TabThis() WStyle
	GetStylingArray() []styling.StyledTextOption
	// contains filtered or unexported methods
}

func ArrayToStyle

func ArrayToStyle(v []styling.StyledTextOption) WStyle

func GetBold

func GetBold(value string) WStyle

func GetEmpty

func GetEmpty() WStyle
func GetHyperLink(text, url string) WStyle

func GetItalic

func GetItalic(value string) WStyle

func GetMono

func GetMono(value string) WStyle

func GetNormal

func GetNormal(value string) WStyle

func GetSpoiler

func GetSpoiler(value string) WStyle

func ParamToStyle

func ParamToStyle(v ...styling.StyledTextOption) WStyle

Jump to

Keyboard shortcuts

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