Hacker News new | ask | show | jobs
by duskwuff 473 days ago
You can assert that your type implements an interface at compile time, though, e.g.

    var _ AssertedInterface = &MyType{}