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:
Access this course and 1400+ top-rated courses and projects.