We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
add function Must[T any](value T, err error) T
Too many function return value and error , and a lot of library and golang implement Must(x, error) .
func Must[T any](value T, err error) T{ if err != nil { panic(err) } return value }
put into errors package?
The text was updated successfully, but these errors were encountered:
This is #54297 and #60846, closing in favour of the older thread.
Sorry, something went wrong.
No branches or pull requests
Proposal Details
add function Must[T any](value T, err error) T
Too many function return value and error , and a lot of library and golang implement Must(x, error) .
put into errors package?
The text was updated successfully, but these errors were encountered: