On Mon, Jun 22, 2020 at 7:08 PM Pee Jai <p...@pjebs.com.au> wrote:
>
> I can't find a way to constrain for just structs. I don't want primitives.

The design draft doesn't provide any mechanism for a type constraint
to match any arbitrary struct type, and not any other kind of type.

But it's not clear why that would be useful.  The only things you can
do with a value of an arbitrary struct type are things that you can do
with a value of any arbitrary type.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXfeb%2BiAHHrjxcaAbeYhPytwCe%3Dh553_eeOWet%3DNSUn4w%40mail.gmail.com.

Reply via email to