color

package
v0.0.0-...-df6e0f9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red    = Color{/* contains filtered or unexported fields */}
	Blue   = Color{/* contains filtered or unexported fields */}
	Green  = Color{/* contains filtered or unexported fields */}
	Yellow = Color{/* contains filtered or unexported fields */}
	Cyan   = Color{/* contains filtered or unexported fields */}
)

Functions

func DecorateAttr

func DecorateAttr(attrString, message string) string

DecorateAttr decorate strings with a color or an emoji, respecting the user preference if no colour needed.

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

func (Color) Fprintf

func (c Color) Fprintf(out io.Writer, format string, a ...interface{})

Fprintf outputs the result to out.

func (Color) Fprintln

func (c Color) Fprintln(out io.Writer, a ...interface{})

Fprintln outputs the result to out, followed by a newline.

Jump to

Keyboard shortcuts

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