chat

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ColorAChar = '&'
View Source
const ColorCChar = '§'

Variables

This section is empty.

Functions

func Translate

func Translate(text string) string

func TranslateConsole

func TranslateConsole(text string) string

Types

type ChatColor

type ChatColor int
const (
	DarkRed ChatColor = iota
	Red

	Gold
	Yellow

	DarkGreen
	Green

	DarkAqua
	Aqua

	DarkBlue
	Blue

	DarkPurple
	Purple

	White
	Black

	DarkGray
	Gray

	Obfuscated
	Bold
	Strikethrough
	Underline
	Italic
	Reset
)

func (*ChatColor) MarshalJSON

func (code *ChatColor) MarshalJSON() ([]byte, error)

func (*ChatColor) On

func (code *ChatColor) On(text string) string

func (ChatColor) String

func (code ChatColor) String() string

func (*ChatColor) UnmarshalJSON

func (code *ChatColor) UnmarshalJSON(bytes []byte) error

type ColorCode

type ColorCode struct {
	Chat string
	Motd string
	Json string

	Dec string
	Hex string
}

Jump to

Keyboard shortcuts

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