...

Package color

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

Overview ▾

Package color adds coloring functionality for TTY output.

type Color

Color represents a text color.

type Color uint8

Foreground colors.

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

func (Color) Add

func (c Color) Add(s string) string

Add adds the coloring to the given string.