format

package
v0.0.0-...-4b56e16 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Text

type Text struct {
	Text  string
	Color string
}

Text to send.

func Blue

func Blue(message string) *Text

Blue text.

func Cyan

func Cyan(message string) *Text

Cyan text.

func Gray

func Gray(message string) *Text

Gray text.

func Green

func Green(message string) *Text

Green text.

func Magenta

func Magenta(message string) *Text

Magenta text.

func NewText

func NewText(message string, color string) *Text

NewText constructor.

func Red

func Red(message string) *Text

Red text.

func Yellow

func Yellow(message string) *Text

Yellow text.

func (*Text) Format

func (m *Text) Format() string

Format message.

func (*Text) String

func (m *Text) String() string

Format message.

func (*Text) ToError

func (m *Text) ToError() error

ToError conversion.

Jump to

Keyboard shortcuts

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