You can't convert between maps with different types of keys or values. So
you have to copy the map into one with the correct target type:

https://play.golang.org/p/qmD2pypNbj

----
*Josh Humphries*
jh...@bluegosling.com

On Mon, Aug 21, 2017 at 10:48 AM, Tong Sun <suntong...@gmail.com> wrote:

> Hi,
>
> How to converting type map[string]interface {} to type map[interface
> {}]interface {}?
>
> I got
>
> cannot convert m (type map[string]interface {}) to type map[interface 
> {}]interface {}
>
>
> but I don't know how to fix it.
>
> https://play.golang.org/p/VU4ND_6JU_
>
> please help. Thx.
>
>
>
>
> --
> 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.
>

-- 
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.

Reply via email to