Interfaces vs. Generics
Let’s compare interfaces and generics in Go.
We'll cover the following
This lesson presents a program that increments a numeric value by one using interfaces and generics so that we can compare the implementation details.
Coding example
The interfaces.go
code illustrates the two techniques and contains the next code:
Get hands-on with 1400+ tech skills courses.