zap: go.uber.org/zap/internal/color Index | Files

package color

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

Package color adds coloring functionality for TTY output.

Index

Package Files

color.go

type Color Uses

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 Uses

func (c Color) Add(s string) string

Add adds the coloring to the given string.

Package color imports 1 packages (graph) and is imported by 1 packages. Updated 2017-08-11. Refresh now. Tools for package owners.