Back to godoc.org

Package color

v1.16.0
Latest Go to latest

The latest major version is .

Published: Sep 1, 2020 | License: MIT | Module: go.uber.org/zap

Overview

Package color adds coloring functionality for TTY output.

Index

type Color

type Color uint8

Color represents a text color.

const (
	Black Color = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

Foreground colors.

func (Color) Add

func (c Color) Add(s string) string

Add adds the coloring to the given string.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier