gocore: add function to find the dynamic type of an interface
Typically you could also get this type from following the data
pointer of the interface. But the direct vs indirect distinction
means you can't distinguish between *T and T, and for typed nils
there's no way to find the type.
Instead, just provide this functionality directly.
Reviewed-by: Austin Clements <firstname.lastname@example.org>
Run-TryBot: Austin Clements <email@example.com>
2 files changed