alert

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Provides several common helper functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainError

func ChainError(err error, message string) error

Chain a new error message with an existing error.

func ChainErrorF

func ChainErrorF(err error, format string, args ...any) error

Chain a new error message using fmt package formatting with an existing error.

func Error

func Error(message string) error

Creates a new error from a string.

func ErrorF

func ErrorF(format string, args ...any) error

Creates a new error using fmt package formatting.

func Print

func Print(err error)

Print the error with a styled prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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