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
Hi, perhaps this example isn't the best one because there's a potential for type mismatches.
If we want to use type matching here, perhaps 'switch' is a better choice; or at least I think using the following type checking method would be better.
Hi, perhaps this example isn't the best one because there's a potential for type mismatches.
If we want to use type matching here, perhaps 'switch' is a better choice; or at least I think using the following type checking method would be better.
https://github.com/senghoo/golang-design-pattern/blob/e9d687a5411f31db2a5d7229f94fb4c6c73163d3/07_prototype/prototype_test.go#L38C1-L38C18
The text was updated successfully, but these errors were encountered: