colors

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Black

func Black(s interface{}) string

func Colored

func Colored(w io.Writer) io.Writer

Colored creates and initializes a new ansiColorWriter using io.Writer w as its initial contents. In the console of Windows, which change the foreground and background colors of the text by the escape sequence. In the console of other systems, which writes to w all text.

func Cyan

func Cyan(s interface{}) string

func Green

func Green(s interface{}) string

func Red

func Red(s interface{}) string

func Uncolored

func Uncolored(w io.Writer) io.Writer

func White

func White(s interface{}) string

func Yellow

func Yellow(s interface{}) string

Types

type ColorFunc

type ColorFunc func(interface{}) string

func Bold

func Bold(fn ColorFunc) ColorFunc

Jump to

Keyboard shortcuts

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