2 ms·
You can assert that your type implements an interface at compile time, though, e.g. var _ AssertedInterface = &MyType{}
by duskwuff 2y ago
You can assert that your type implements an interface at compile time, though, e.g.
var _ AssertedInterface = &MyType{}