← Go Lesson 9

Lesson 9: Generics

7 min read

1. Q1: What does the ~ (tilde) do in a constraint?

2. Q2: Why can't Go methods have their own type parameters?

3. Q3: When should you use an interface instead of generics?