News for hackers. Stuff that matters.
Re:Eight years of Go by cube2222 on Friday November 10, 2017 @03:53PM (#15672937)
Sibling comment shows one way to do it, but in most cases, at least for me, which is when both the struct and interface are in the same package it gets solved by the NewMyInterface method.

As it's return type is MyInterface, but it actually returns myStructure which causes the compiler to check the interface satisfying.

There are no comments on this comment yet.