utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Cyan   = "\033[36m"
	White  = "\033[37m"
	Reset  = "\033[0m"
	Bold   = "\033[1m"
)

ANSI color codes

Variables

View Source
var Version = "1.0.6"

Version is set during build or defaults to dev

Functions

func Banner()

Banner displays the Xsearch ASCII art banner in red

func PrintError

func PrintError(format string, args ...interface{})

PrintError prints an error message in red

func PrintInfo

func PrintInfo(format string, args ...interface{})

PrintInfo prints an info message in cyan

func PrintSuccess

func PrintSuccess(format string, args ...interface{})

PrintSuccess prints a success message in green

func PrintWarning

func PrintWarning(format string, args ...interface{})

PrintWarning prints a warning message in yellow

Types

This section is empty.

Jump to

Keyboard shortcuts

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