Comment by stefanos82
Comment by stefanos82 13 hours ago
Can you provide an example please?
Comment by stefanos82 13 hours ago
Can you provide an example please?
It's called struct embedding, there an article about it in Go by Example if you're interested: https://gobyexample.com/struct-embedding
Thank you @listeria, today I learned about struct embedding lol!
I rediscover this about once a year and am always so happy when I do.
something like this would do it: