On Fri, May 8, 2020 at 1:34 PM Glen Newton <
glen....@gmail.com> wrote:
>
> I would like to get the name of the struct implementing an interface (using a method in the interface). I could just have the MyInterface.StructName() method in each implementing struct which just did a return "myname" but I would prefer to do this using reflection and without having to replicate the same method in all implementations, I have tried using an embedded struct here[1], but it prints the name of the embedded struct. Is there a way to do this?
>
> Why: I have multiple implementations and want to be able to record which implementation was used.