Skip to content

feat: export sentinel errors and support errors.Is#10

Merged
kpiljoong merged 1 commit into
mainfrom
feat/export-errors-and-errors-is
Mar 14, 2026
Merged

feat: export sentinel errors and support errors.Is#10
kpiljoong merged 1 commit into
mainfrom
feat/export-errors-and-errors-is

Conversation

@kpiljoong
Copy link
Copy Markdown
Collaborator

Summary

Export well-known sentinel errors and wrap parse/validation failures so callers
can use errors.Is.

This change:

  • adds exported sentinel errors for public failure modes
  • wraps Parse, prefix validation, and hex parsing errors using %w
  • documents possible returned error values in GoDoc
  • adds tests covering errors.Is behavior

Closes #5

@kpiljoong kpiljoong merged commit 4ae4721 into main Mar 14, 2026
1 check passed
@kpiljoong kpiljoong deleted the feat/export-errors-and-errors-is branch May 19, 2026 14:35
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.

Export well-known errors and support errors.Is

1 participant