errfmt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errfmt formats errors into user-friendly messages with actionable hints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(err error) string

Format returns a user-friendly error message. It maps known error patterns to helpful hints.

func Hint

func Hint(err error, hint string) string

Hint appends a hint to the error message.

func Wrap

func Wrap(err error, action string) error

Wrap returns an error with a user-friendly prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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