Hello, I am using Go 1.20.4 on Ubuntu 22.04. I am facing a compilation error when I attempt to pass a map from a string to a struct to a function that expects a map from string to an interface.
Here is some example code demonstrating the issue: https://goplay.tools/snippet/GrPfTWfycdx <https://goplay.tools/snippet/GrPfTWfycdx> Here, the struct is Helper, and it conforms to both interface definitions - Helper1 and Helper2. I am able to pass in an instance of Helper directly, however when I attempt to pass a *map[string]Helper *the compiler throws a type error IncompatibleAssign. I was wondering if anyone else has faced something similar? And if so, how did you solve this issue. Would appreciate any input, thank you. Regards, Pranay Agarwal -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/18048d0e-08b2-41b9-b155-cbcfe3d85750n%40googlegroups.com.