First of all, I hope this is an appropriate place to ask this question, 
please let me know if it's not.

I wonder if it is possible to use composition and embed a generic struct 
(with go2go of course)?

I wan’t to do something like this, where I try to embed a generic struct to 
another generic struct: https://go2goplay.golang.org/p/5SPrFG55PFW

A non-generic version of this might be like 
this: https://go2goplay.golang.org/p/0oMJzsSoDo5


I am not very familiar to this new generic aspect in Go, so it might be 
that I am doing it wrong? Or is it maybe impossible to embed a generic 
struct?

Thanks!


-- 
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/ceab9865-216b-47af-93d1-dfbaa1b5ec73n%40googlegroups.com.

Reply via email to