color

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package color implements color output on console.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Color

func Color(fgColor, bgColor, attrVal string) string

Color returns color code for terminal display

Available colors:

normal
black
red
green
yellow
blue
magenta
cyan
white

Available attributes:

bold
dim
ul
blink
reverse

func Dim

func Dim(msg string)

Dim shows message in dim style

func Dimf

func Dimf(f string, args ...interface{})

Dimf is sprintf version of Dim

func Dimln

func Dimln(msg string)

Dimln shows message in dim style with LF

func Hilight

func Hilight(msg string)

Hilight shows hightlight message

func Hilightf

func Hilightf(f string, args ...interface{})

Hilightf is sprintf version of Hilight

func Hilightln

func Hilightln(msg string)

Hilightln shows hightlight message with LF

func Reset

func Reset() string

Reset returns ResetColor to reset color output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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