ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(outputType OutputType, message string)

Print prints colored output.

func PrintError

func PrintError(message string)

PrintError prints an error message.

func PrintHeader

func PrintHeader(title string)

PrintHeader prints a formatted header.

func PrintInfo

func PrintInfo(message string)

PrintInfo prints an info message.

func PrintSuccess

func PrintSuccess(message string)

PrintSuccess prints a success message.

func PrintTable

func PrintTable(headers []string, rows [][]string)

PrintTable prints a simple table.

func PrintWarning

func PrintWarning(message string)

PrintWarning prints a warning message.

Types

type OutputType

type OutputType int

OutputType defines different output types.

const (
	// OutputSuccess indicates a successful operation.
	OutputSuccess OutputType = iota
	// OutputError indicates an error.
	OutputError
	// OutputWarning indicates a warning.
	OutputWarning
	// OutputInfo indicates informational output.
	OutputInfo
)

Jump to

Keyboard shortcuts

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