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
Instead of using comments to annotate types, use either function calls or stub interfaces.
Either of these could work:
type Letter byte var _ enum.Exhaustive = Letter(0)
type Letter byte var _ = enum.Exhaustive(Letter(0))
This would allow to specify the different options more nicely or suppressing the error messages.
The text was updated successfully, but these errors were encountered:
For exceptions to the default behavior in switches:
switch enum.Exhaustive(xyz); xyz {
For exceptions to the default behavior in func declarations:
func Example(xyz Value) { enum.Exhaustive(xyz) }
Sorry, something went wrong.
No branches or pull requests
Instead of using comments to annotate types, use either function calls or stub interfaces.
Either of these could work:
This would allow to specify the different options more nicely or suppressing the error messages.
The text was updated successfully, but these errors were encountered: