Solution 1: Reflection and Interfaces

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

Problem 1: Solution

This is a Go program that demonstrates sorting a slice of structures based on one of the fields of the structure.

Get hands-on with 1400+ tech skills courses.