Open
Description
Alias type name hides interface function name.
This led me down an interesting exploration of go and how a field can hide a function given by an anonymous struct field.
It makes the code confusing to someone reading it. What is the benefit of naming these the same thing? If there's no practical benefit - why not have the interface method and the type alias have different names? The method isn't exported anyway and won't clutter the autocomplete of customers.
Activity