I have the following go code:
```
type A map[string]interface{}
type B map[string]interface{}
func f(a A) {
fmt.Println(a)
}
func main() {
var b B
b = make(map[string]interface{})
i := interface{}(b)
f(i.(A))
}
```
This code panics when I try to convert the B instance to type A. What is
the right way to do the cast here ?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.