MediumScenarioStructs, interfaces and generics
You need to test code that calls an external payment API. How do you design it in Go?
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.
PreviousWhat is the comparable constraint and its pitfall?Next Two structs share common fields and behaviour. Inheritance is missing, so what do you do?