Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compound ¶
type Compound struct {
// contains filtered or unexported fields
}
func NewCompound ¶
func NewCompound() Compound
func NewErrorString ¶ added in v0.2.0
func NewFormattedString ¶ added in v0.2.0
func NewFormattedString(value string, format StringFormat, fmtParams ...any) Compound
type StringColor ¶ added in v0.2.0
type StringColor string
const ( Black StringColor = "black" DarkBlue StringColor = "dark_blue" DarkGreen StringColor = "dark_green" DarkAqua StringColor = "dark_aqua" DarkRed StringColor = "dark_red" DarkPurple StringColor = "dark_purple" Gold StringColor = "gold" Gray StringColor = "gray" DarkGray StringColor = "dark_gray" Blue StringColor = "blue" Green StringColor = "green" Aqua StringColor = "aqua" Red StringColor = "red" LightPurple StringColor = "light_purple" Yellow StringColor = "yellow" White StringColor = "white" )
func HexColor ¶ added in v0.2.0
func HexColor(hex string) StringColor
type StringFormat ¶ added in v0.2.0
type StringFormat struct { Color StringColor Bold bool Italic bool Underlined bool Strikethrough bool Obfuscated bool }
func (StringFormat) ToMap ¶ added in v0.2.0
func (s StringFormat) ToMap() map[string]string
func (StringFormat) ToString ¶ added in v0.2.0
func (s StringFormat) ToString() string
Click to show internal directories.
Click to hide internal directories.