Repository navigation
PIPMG-3860: Expose errors.AsType - #12
Merged
Merged
Conversation
horkhe
force-pushed
the
maxim/develop
branch
from
November 26, 2026 13:14
3f17fb5 to
b57eaf5
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the error-helper, documentation, and tooling updates.
No open issues 🎉
What changed in this PR
This PR exposes the standard library’s generic errors.AsType through the package’s existing error helpers and updates documentation and tooling to support it.
Changes:
- Adds
AsTypewith a standard-library comparison test. - Refreshes error-helper documentation and makes small formatting and reflection cleanups.
- Raises the minimum Go version and updates CI Go versions and lint tooling.
| File | Description |
|---|---|
go.mod |
Raises the minimum Go version to 1.26.11. |
fields.go |
Writes formatted fields directly into the buffer. |
errors.go |
Exposes AsType, refreshes documentation, and uses reflect.Pointer. |
errors_test.go |
Adds a wrapped-error test comparing AsType with the standard library. |
.github/workflows/test.yaml |
Updates the test matrix to Go 1.26 and 1.27. |
.github/workflows/lint.yaml |
Updates golangci-lint to v2.15.0. |
Review effort: Balanced
jackg-mg
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.