ui

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorCol is the color for errors
	ErrorCol = color.New(color.FgHiRed, color.Bold).FprintfFunc()

	// PromptCol is the color for prompts
	PromptCol = color.New(color.FgHiWhite, color.Bold).FprintfFunc()

	// SuccessCol is the color for success
	SuccessCol = color.New(color.FgHiGreen, color.Bold).FprintfFunc()

	// InfoCol is the color for prompts
	InfoCol = color.New(color.FgHiWhite, color.Bold).FprintfFunc()

	// WarnCol is the color for warnings
	WarnCol = color.New(color.FgHiYellow, color.Bold).FprintfFunc()
)

Functions

func Error

func Error(format string, a ...interface{})

Error prints an error

func Info

func Info(format string, a ...interface{})

Info prints an info message

func Prompt

func Prompt(format string, a ...interface{})

Prompt prints a prompt

func Success

func Success(format string, a ...interface{})

Success prints a success message

func Warn

func Warn(format string, a ...interface{})

Warn prints a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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