On Saturday, May 6, 2017 at 9:05:16 AM UTC+8, be...@qoorp.com wrote: > > Greetings, > > I am using a package that has documented the use of a function liker this: > router.Middleware((*WebContext).CORSHeaders) > > Thaat works. When I do: > > (*mytype).fun has one more parameter than (&mytype{}).fun. Whe a method is used as a type.function, the method receiver will become the first parameter of the type.function.
-- 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.