Thanks for the tips.

On Wed, Oct 12, 2016 at 2:11 PM Jesse McNelis <jes...@jessta.id.au> wrote:

> On Wed, Oct 12, 2016 at 11:05 PM,  <sh...@tigera.io> wrote:
> >  Seems like a function
> > pointer is more universal (I don't even need an object to be a receiver)
> but
> > maybe an interface is more idiomatic?
>
> An interesting pattern from the http pkg is that a function type can
> also implement an interface.
> https://golang.org/pkg/net/http/#HandlerFunc
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to