package color

import "go.uber.org/zap/internal/color"

Package color adds coloring functionality for TTY output.

Index

Types

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.

Source Files

color.go

Version
v1.27.0 (latest)
Published
Feb 20, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
5 hours ago

Tools for package owners.