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

Move asMaxBytesError to error.go #504

Merged
merged 1 commit into from
May 10, 2023
Merged

Move asMaxBytesError to error.go #504

merged 1 commit into from
May 10, 2023

Conversation

bufdev
Copy link
Member

@bufdev bufdev commented May 10, 2023

Extreme nit: since other error functions (including as* functions) are in error.go, it seems like it might be worth putting it in there to avoid an extra file.

@bufdev bufdev requested a review from akshayjshah May 10, 2023 15:29
@akshayjshah
Copy link
Member

Sure :) This used to be the Go 1.19+ variant, with a different version conditionally compiled for Go 1.18 or lower.

@akshayjshah akshayjshah merged commit 783d367 into main May 10, 2023
@akshayjshah akshayjshah deleted the maxbytes-move branch May 10, 2023 22:58
akshayjshah pushed a commit that referenced this pull request Jul 26, 2023
Extreme nit: since other error functions (including `as*` functions) are
in `error.go`, it seems like it might be worth putting it in there to
avoid an extra file.
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