Aren’t all interface references passed as a pointer? It is a var that contains 
a pointer to the struct and a concrete type of the struct?

> On Nov 19, 2018, at 8:45 AM, Volker Dobler <dr.volker.dob...@gmail.com> wrote:
> 
> > Is there a way to force "SomeFunction" to take pointers only at compile 
> > time?
> 
> No, sorry.
> 
> V.
> 
> -- 
> 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.

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