Hacker News new | ask | show | jobs
by listeria 296 days ago
It's called struct embedding, there an article about it in Go by Example if you're interested: https://gobyexample.com/struct-embedding
1 comments

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.