colors

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 1 Imported by: 5

Documentation

Overview

Package colors provides a collection of color definitions for use with a spinner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColor

func GetColor(c Color) *color.Color

GetColor returns a color.Color for the given color.

Types

type Color

type Color int

Color represents an item in the color map.

const (
	// NoColor will bypass the color lookup causing characters to render
	// with the current default of the terminal.
	NoColor Color = iota

	// FgHiGreen is a foreground high intensity green color.
	FgHiGreen

	// FgHiYellow is a foreground high intensity yellow color.
	FgHiYellow

	// FgHiBlue is a foreground high intensity blue color.
	FgHiBlue

	// FgHiRed is a foreground high intensity red color.
	FgHiRed

	// FgWhite is a foreground white color.
	FgHiWhite
)

Jump to

Keyboard shortcuts

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