On Sat, Mar 2, 2019 at 10:32 AM 김용빈 <kyb...@gmail.com> wrote: > but it seems the argument is not automatically converted.
Things are automatically converted to a different type in Go only when they are assigned to, or passed as arguments of, interface types. > manual type cast `map[string]interface{}(myMap)` also not working. > is there a way of doing this? Go does not have casts. Conversion rules[0] do not allow a conversion of different map types because the memory layouts are not compatible. [0]: https://golang.org/ref/spec#Conversions -- -j -- 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. For more options, visit https://groups.google.com/d/optout.