Skip to content

PIPMG-3860: Expose errors.AsType - #12

Merged
horkhe merged 3 commits into
mainfrom
maxim/develop
Nov 26, 2026
Merged

horkhe merged 3 commits into
mainfrom
maxim/develop

Conversation

@horkhe

@horkhe horkhe commented Nov 26, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 AsType with 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

@horkhe
horkhe merged commit 9751b2e into main Nov 26, 2026
4 checks passed
@horkhe
horkhe deleted the maxim/develop branch November 26, 2026 14:03
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.

3 participants