MediumConceptStructs, interfaces and generics
What does "accept interfaces, return structs" mean?
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.
PreviousWhy can an interface holding a nil pointer be non-nil?Next How does a type assertion differ from a type switch?