On Thu, Mar 28, 2019 at 10:02 PM Greg Bostrom <zbost...@gmail.com> wrote:
>
> No, I intended to call New(foo)

Well, in the program you showed us, foo is not defined, and that is
what the compiler is telling you.

It was mistaken in thinking that you meant new(M), though, since you
actually want to call New.  What you want is most likely
    m := New((*M).foo)

Ian

-- 
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