3 ms·
Yeah, this type of check is nice if you intend to implement an interface, but don't actually use the type as that interface in your package. This will give a co
by NateDad 12y ago
Yeah, this type of check is nice if you intend to implement an interface, but don't actually use the type as that interface in your package. This will give a compile time error if your type doesn't satisfy the interface. You could write a test for it too, but this is a little simpler and harder to miss.