Solution 2: Go Generics

Let’s solve the challenge set in the previous lesson.

We'll cover the following

Solution

Here is the reflection.go code containing two separate functions in order to support the printing of strings using reflection and generics:

Get hands-on with 1200+ tech skills courses.