Categorygithub.com/weisbartb/stack
modulepackage
1.0.2
Repository: https://github.com/weisbartb/stack.git
Documentation: pkg.go.dev

# README

Stack

license

Stack provides stack tracing and enhanced error logging. Much of this code predates pkg/errors supporting marshallable stacktraces but has been updated to have interoperability with it.

Features

  • Grabs full traces at the invocation of the error trace
  • Prevents repeated nesting of traces with automatic merging of new error data
  • Allows for additional data to be attached to errors that can be optionally exported based on the error handling
  • Provides automatic marshalling of entries to Zerolog

# Functions

No description provided by the author
No description provided by the author
HasTrace determines if there is a traceable error.
No description provided by the author
No description provided by the author
No description provided by the author
TraceToString converts a trace to a string that can be read, this doesn't capture the extra data just a stack trace This is mostly used for tests to make it more readable if something melts down.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author