console

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black   = Color("\033[1;30m%s\033[0m")
	Red     = Color("\033[1;31m%s\033[0m")
	Green   = Color("\033[1;32m%s\033[0m")
	Yellow  = Color("\033[1;33m%s\033[0m")
	Purple  = Color("\033[1;34m%s\033[0m")
	Magenta = Color("\033[1;35m%s\033[0m")
	Teal    = Color("\033[1;36m%s\033[0m")
	White   = Color("\033[1;37m%s\033[0m")
)

Functions

func Color

func Color(colorString string) func(...interface{}) string

func Confirm

func Confirm(s string) bool

func Error

func Error(message string)

func ErrorLn

func ErrorLn(message string)

func Errorf

func Errorf(message string, a ...any)

func Fatal

func Fatal(err error)

func Info

func Info(message string)

func InfoLn

func InfoLn(message string)

func Infof

func Infof(message string, a ...any)

func NumberPlural

func NumberPlural(c int, one, many string) string

func Success

func Success(message string)

func SuccessLn

func SuccessLn(message string)

func Successf

func Successf(message string, a ...any)

func Warn

func Warn(message string)

func WarnLn

func WarnLn(message string)

func Warnf

func Warnf(message string, a ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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