Thanks for the tips. On Wed, Oct 12, 2016 at 2:11 PM Jesse McNelis <[email protected]> wrote:
> On Wed, Oct 12, 2016 at 11:05 PM, <[email protected]> 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
