Re: [go-nuts] Converting type map[string]interface {} to type map[interface {}]interface {}

2017-08-21 Thread Josh Humphries
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 wrote: > Hi, > > How to converti

[go-nuts] Converting type map[string]interface {} to type map[interface {}]interface {}

2017-08-21 Thread Tong Sun
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 recei