package
0.0.0-20241113112105-d5176070b8d9
Repository: https://github.com/ortizdavid/go-nopain.git
Documentation: pkg.go.dev

# README

messages

Handles message formatting

Features

  • Coloring messages
  • Message types
  • Message handling (Fail, Log, Print)

# Functions

Colorize prints the given text in the specified color.
Colorizef prints the formatted text in the specified color.
Error prints the given message in red color to indicate an error.
FailOnError logs the error message along with a custom message and terminates the program if the error is not nil.
Info prints the given message in cyan color to provide informational messages.
LogFailOnError logs the error message and terminates the program if it's not nil.
PanicOnError panics with the error message if it's not nil.
PrintOnError prints the error message if it's not nil.
Success prints the given message in green color to indicate successful operations.
Warning prints the given message in yellow color to indicate warnings.

# Constants

ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
Corrected typo in color name.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
Corrected typo in color name.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.
ANSI color escape sequences for text colorization.