samples

package
Version: v0.0.0-...-09f00c6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorBlack  Color = "\u001b[30m"
	ColorRed          = "\u001b[31m"
	ColorGreen        = "\u001b[32m"
	ColorYellow       = "\u001b[33m"
	ColorBlue         = "\u001b[34m"
	ColorReset        = "\u001b[0m"
)

Variables

This section is empty.

Functions

func ColoredOutput

func ColoredOutput()

ColoredOutput function displays the message in the color provided on the terminal

func Colorize

func Colorize(color Color, message string)

Colorize function changes the color of the text output

Types

type Color

type Color string

Source Files

Jump to

Keyboard shortcuts

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