messages

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FatalCode  int
	FatalTxt   = "FATAL ERROR: "
	PanicTxt   = "PANIC: "
	ErrorTxt   = "ERROR: "
	WarningTxt = "WARNING: "
	InfoTxt    = "INFO: "
)

Functions

func CustomInfo

func CustomInfo(c Color, msg ...any)

func CustomMsg added in v1.2.0

func CustomMsg(title any, titleColor Color, msg ...any)

func Error

func Error(msg ...any)

func Errorf

func Errorf(txt string, args ...any)

func FatalError

func FatalError(msg ...any)

func FatalErrorf

func FatalErrorf(txt string, args ...any)

func Info

func Info(msg ...any)

func Infof

func Infof(txt string, args ...any)

func PanicError

func PanicError(msg ...any)

func PanicErrorf

func PanicErrorf(text string, args ...any)

func Warning

func Warning(msg ...any)

func Warningf

func Warningf(txt string, args ...any)

Types

type Color

type Color interface {
	Print(...any)
}

Jump to

Keyboard shortcuts

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