errchain

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package errchain names the Go errors a failure wraps, the form icebath logs failures in

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(err error) []string

Type and message of err and of every error it wraps, outermost first, joined errors in their order

func Kind

func Kind(v any) string

Plain name of the kind of a decoded value such as text, a number, a list or a mapping

func OSText

func OSText(err error) string

Reason of an operating system failure followed by the path, paths or command it concerns

func Reword

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

Error saying the formatted message to the reader, err kept in the chain for the log and class checks

func Show

func Show(v any) string

Value as a person writes it, text as is, plain numbers, true or false, list items joined by commas

func Text

func Text(err error) string

Chain of err on one line, each wrapped error after an arrow

func Types

func Types(err error) string

Type of err and of every error it wraps, outermost first

Types

This section is empty.

Jump to

Keyboard shortcuts

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