MediumScenarioStructs, interfaces and generics
Two structs share common fields and behaviour. Inheritance is missing, so what do you do?
This answer is part of Pro
12 of 90 Golang Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousYou need to test code that calls an external payment API. How do you design it in Go?Next What is a goroutine?