package
1.10.3
Repository: https://github.com/caring/go-packages.git
Documentation: pkg.go.dev

# README

# Packages

No description provided by the author

# Functions

As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
Cause returns the underlying cause of the error, if possible.
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
FromGrpcError takes a grpc error passed in, and gets the status of it to create a WithGrpcStatus error type.
FromHTTP reads an error from the http response.
converts a HTTP error code to a gRPC code.
HTTPFromGrpc converts a gRPC error code to a HTTP code.
Is reports whether any error in err's chain matches target.
New returns an error with the supplied message.
ToHTTP writes the error to the http response.
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.
WithGrpcStatus annotates err with the grpc code and a status.
WithHTTPStatus annotates an error with an http code.
WithMessage annotates err with a new message.
WithMessagef annotates err with the format specifier.
WithStack annotates err with a stack trace at the point WithStack was called.
Wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message.
Wrapf returns an error annotating err with a stack trace at the point Wrapf is called, and the format specifier.

# Type aliases

Frame represents a program counter inside a stack frame.
StackTrace is stack of Frames from innermost (newest) to outermost (oldest).