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
sealed interfaces include a no-op private method so that only package-local types can implement the interface. it is therefore possible to check exhaustiveness statically.
sealed interfaces include a no-op private method so that only package-local types can implement the interface. it is therefore possible to check exhaustiveness statically.
example:
see https://github.com/alecthomas/go-check-sumtype , which works but does not use
analysis
, and thus cannot be used with tools likenogo
The text was updated successfully, but these errors were encountered: