Skip to content

chore(style): refine some error name#518

Merged
MeteorsLiu merged 1 commit into
xgo-dev:mainfrom
luoliwoshang:refactor/error-handling-uber-guide
Jul 29, 2025
Merged

chore(style): refine some error name#518
MeteorsLiu merged 1 commit into
xgo-dev:mainfrom
luoliwoshang:refactor/error-handling-uber-guide

Conversation

@luoliwoshang
Copy link
Copy Markdown
Contributor

@luoliwoshang luoliwoshang commented Jul 28, 2025

According to the https://github.com/uber-go/guide/blob/master/style.md#error-types

Since this is a static error message that needs error matching (used with errors.Is), errors.New is the recommended approach over fmt.Errorf.

@luoliwoshang luoliwoshang changed the title chore: refine some error name chore(style): refine some error name Jul 28, 2025
@luoliwoshang luoliwoshang requested a review from MeteorsLiu July 28, 2025 07:08
@MeteorsLiu MeteorsLiu merged commit c7417b0 into xgo-dev:main Jul 29, 2025
12 checks passed
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.

2 participants