How can I ensure that a type implements an interface at compile time? The typical way to do this is by failure to assign to support interfaces from that type, however I have
Assuming the question is about Go, e.g.
var _ foo.RequiredInterface = myType{} // or &myType{} or [&]myType if scalar
as a TLD will check that for you at compile time.