3 ms·
You can use struct embedding to accomplish that if you need it (Embed Dog / Animal in a new struct which adds/modifies functionality). Though this is used fair
by cube2222 3y ago
You can use struct embedding to accomplish that if you need it (Embed Dog / Animal in a new struct which adds/modifies functionality).
Though this is used fairly rarely in Go.