decorators

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator string

Decorator is a type of text decorator (bold, underline, etc.)

var (
	Obfuscated    Decorator = "obfuscated"
	Bold          Decorator = "bold"
	Strikethrough Decorator = "strikethrough"
	Underline     Decorator = "underline"
	Italic        Decorator = "italic"
)

func Parse

func Parse(value interface{}) Decorator

Parse attempts to return a Decorator type based on a formatting code string, formatting name string, or a Decorator type itself

func (Decorator) ToRaw

func (d Decorator) ToRaw() string

Jump to

Keyboard shortcuts

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