color

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Random

func Random(min, max int) int

Random color number

func String

func String(c int, str string) string

String returns a color escape string

func StringFormat

func StringFormat(c int, str string, args []string) string

StringFormat returns a color escape string with extra options

func StringFormatBoth

func StringFormatBoth(fg, bg int, str string, args []string) string

StringFormatBoth fg and bg colors

func StringRandom

func StringRandom(str string) string

StringRandom returns a random colored string

func Stringf

func Stringf(c int, format string, args ...interface{}) string

Stringf returns a color escape string with format options

Types

This section is empty.

Jump to

Keyboard shortcuts

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