chalk

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package chalk provides convenience utilities for working with colourized output using gchalk.

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = gchalk.Reset

	Error     = gchalk.Red
	ErrorBold = gchalk.WithRed().Bold
	Warning   = gchalk.Yellow
	Success   = gchalk.WithGreen().Bold

	Bold       = gchalk.Bold
	Italic     = gchalk.Italic
	Header     = gchalk.Green
	BoldHeader = gchalk.WithGreen().Bold

	BlueUnderline     = gchalk.WithBlue().Underline
	BlueBoldUnderline = gchalk.WithBlue().WithBold().Underline
)

Functions

func HasColor

func HasColor() bool

func PrintErr

func PrintErr(err error)

func PrintErrLight

func PrintErrLight(err error)

func PrintErrStr

func PrintErrStr(str ...string)

func PrintWarningStr

func PrintWarningStr(str ...string)

func QuotedItalic

func QuotedItalic(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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