You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to make it a lint error to call GetBaz and GetQuix directly in favor of always doing a type switch on the output of GetBar(). I don't see a documented way to do that but was curious if such a thing was possible.
Thanks so much!
The text was updated successfully, but these errors were encountered:
Is it possible to instruct the linter to error on cases where you're getting one of the fields inside of a
oneof
?For example:
I would like to make it a lint error to call
GetBaz
andGetQuix
directly in favor of always doing a type switch on the output ofGetBar()
. I don't see a documented way to do that but was curious if such a thing was possible.Thanks so much!
The text was updated successfully, but these errors were encountered: