Documentation ¶
Index ¶
- func ANSI(a ...interface{}) string
- func Minecraft(a ...interface{}) string
- type FormatFunc
- func Aqua() FormatFunc
- func Black() FormatFunc
- func Blue() FormatFunc
- func Bold() FormatFunc
- func DarkAqua() FormatFunc
- func DarkBlue() FormatFunc
- func DarkGreen() FormatFunc
- func DarkGrey() FormatFunc
- func DarkPurple() FormatFunc
- func DarkRed() FormatFunc
- func DarkYellow() FormatFunc
- func Gold() FormatFunc
- func Green() FormatFunc
- func Grey() FormatFunc
- func Italic() FormatFunc
- func Obfuscated() FormatFunc
- func Purple() FormatFunc
- func Red() FormatFunc
- func Strikethrough() FormatFunc
- func White() FormatFunc
- func Yellow() FormatFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatFunc ¶ added in v0.12.0
type FormatFunc func(a ...interface{}) string
FormatFunc represents a function that may be called on a list of values to format the values and apply a colour or format on them, such as making the text bold. The formatting on the values passed is done using Minecraft formatting codes. To turn it into a string that may be printed, use text.ANSI(string).
func DarkGreen ¶ added in v0.12.0
func DarkGreen() FormatFunc
DarkGreen returns a dark green formatter.
func DarkPurple ¶ added in v0.12.0
func DarkPurple() FormatFunc
DarkPurple returns a dark purple formatter.
func DarkYellow ¶ added in v1.3.10
func DarkYellow() FormatFunc
DarkYellow returns a dark yellow formatter.
func Obfuscated ¶ added in v0.12.0
func Obfuscated() FormatFunc
Obfuscated returns an obfuscated formatter.
func Strikethrough ¶ added in v0.12.0
func Strikethrough() FormatFunc
Strikethrough returns a strikethrough formatter.
Click to show internal directories.
Click to hide internal directories.