color

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PREFIX_CODE = "\033["
	RESET       = PREFIX_CODE + "0m"

	// colors
	RED   = PREFIX_CODE + "31m"
	GREEN = PREFIX_CODE + "32m"

	// effects
	BOLD = PREFIX_CODE + "1m"
)

Variables

This section is empty.

Functions

func PrintfError

func PrintfError(text string, args ...interface{}) (int, error)

func PrintfOK

func PrintfOK(text string, args ...interface{}) (int, error)

func PrintflnStatus

func PrintflnStatus(text, color, status string, args ...interface{}) (int, error)

func PrintflnStatusError

func PrintflnStatusError(text, reason string, args ...interface{}) (int, error)

func PrintflnStatusOK

func PrintflnStatusOK(text string, args ...interface{}) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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