chat

package
v0.0.0-...-f92d382 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2016 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package chat contains the symbols for message formatting for convenience.

Index

Constants

View Source
const (
	S = "§"

	Black      = S + "0"
	Blue       = S + "1"
	Green      = S + "2"
	Aqua       = S + "3"
	Red        = S + "4"
	Purple     = S + "5"
	Gold       = S + "6"
	LightGray  = S + "7"
	Gray       = S + "8"
	LightBlue  = S + "9"
	LightGreen = S + "a"
	LightAqua  = S + "b"
	LightRed   = S + "c"
	Pink       = S + "d"
	Yellow     = S + "e"
	White      = S + "f"

	Scramble      = S + "k"
	Bold          = S + "l"
	Strikethrough = S + "m"
	Underline     = S + "n"
	Italic        = S + "o"
	Reset         = S + "r"
)

Constants for message formatting for convenience.

Variables

This section is empty.

Functions

func Format

func Format(message string) string

Format formats the message given by replacing all & with § so you can use color codes like "&4" for red.

For example:

Format("&4Hello!")

returns "§4Hello!"

Types

This section is empty.

Jump to

Keyboard shortcuts

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