Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up into separate pakages #50

Merged
merged 9 commits into from
Jan 9, 2025
Merged

Split up into separate pakages #50

merged 9 commits into from
Jan 9, 2025

Conversation

gregwebs
Copy link
Owner

@gregwebs gregwebs commented Jan 9, 2025

Overview

This is a re-structuring. The functionality remains the same.

  • a base stackfmt package. This package is just for stack traces and does not do anything with errors.
  • A separate slogerr package for those looking to add structured errors.
  • An errwrap package for wrapping and unwrapping errors
  • Maintain the existing errors package. This is designed as a replacement for the existing errors package that introduces wrapping with stack traces

The errors package will re-export some items from other packages.
However, it is exporting much less overall. I think the previous package had too large of an API surface, making it difficult to navigate from looking at the go docs.

@gregwebs gregwebs merged commit 78ff78f into main Jan 9, 2025
6 checks passed
@gregwebs gregwebs deleted the split branch January 9, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant