Help us shape the future of Go! Take the 2026 Go Developer Survey

output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Println prints in the default colour.
	Println = printlnInColor(nil)
	// PrintlnLog is used to print log messages for debugging. It prints in a faded colour.
	PrintlnLog = printlnInColor(color.New(color.FgBlack, color.Faint).PrintfFunc())
	// PrintlnInfo is used to print standard output always visible to the user. It prints
	// in the default console colour.
	PrintlnInfo = printlnInColor(color.White)
	// PrintlnWarn is used to print warning messages and are highlighted in yellow.
	PrintlnWarn = printlnInColor(color.Yellow)
	// PrintlnError is used to print errors in red and indicate a fatal problem.
	PrintlnError = printlnInColor(color.Red)

	// Printlnf prints a formatted string in the default colour.
	Printlnf = printlnfInColor(nil)
	// PrintlnfLog is used to print a formatted string as a log message for debugging.
	// It prints in a faded colour.
	PrintlnfLog = printlnfInColor(color.New(color.FgBlack, color.Faint).PrintfFunc())
	// PrintlnfInfo is used to print a formatted string as standard output always visible
	// to the user. It prints in the default console colour.
	PrintlnfInfo = printlnfInColor(color.White)
	// PrintlnfWarn is used to print a formatted string as a warning messages and are
	// highlighted in yellow.
	PrintlnfWarn = printlnfInColor(color.Yellow)
	// PrintlnfError is used to print error messages as formatted strings and indicate
	// a fatal problem.
	PrintlnfError = printlnfInColor(color.Red)

	// Println prints a formatted string in the default colour.
	Printf = printfInColor(nil)
	// PrintlnfLog is used to print a formatted string as a log message for debugging.
	// It prints in a faded colour.
	PrintfLog = printfInColor(color.New(color.FgBlack, color.Faint).PrintfFunc())
	// PrintlnfInfo is used to print a formatted string as standard output always visible
	// to the user. It prints in the default console colour.
	PrintfInfo = printfInColor(color.White)
	// PrintlnfWarn is used to print a formatted string as a warning messages and are
	// highlighted in yellow.
	PrintfWarn = printfInColor(color.Yellow)
	// PrintlnfError is used to print error messages as formatted strings and indicate
	// a fatal problem.
	PrintfError = printfInColor(color.Red)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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