As I was reading the Go docs I found this:
You can ask the compiler to check that the type T implements the interface I by attempting an assignment:
type T struct{}
var _ I = T{} // Verify that T implements I.
I don't understand what the _ is used for and I've seen it in other assignments but cannot understand what it means. Digging deeper I found that it's called "blank identifier" but I don't understand the use case they put:
_ = x // evaluate x but ignore it
Go idioms still feel a little alien to me so I'm trying to understand why I would want to do something like this.