Thanks rog for the suggestions. I can see the case for mocking as well.
On Tuesday, December 13, 2016 at 5:11:26 AM UTC-8, rog wrote:
>
> On 13 December 2016 at 01:08, go-question > wrote:
> >
> > I noticed that its possible to define/scope types/interfaces in
> functions.
> >
> > Now I'm n
On 13 December 2016 at 01:08, go-question wrote:
>
> I noticed that its possible to define/scope types/interfaces in functions.
>
> Now I'm not arguing that this is good practice, but for the sake of
> curiosity.
> How can I then add a method w/ a receiver to type foo so that it satisfies
> interf