go将interface{}转换成map方便读取

#mid是个interface{}
mdi.(map[string]interface{})

参考:http://stackoverflow.com/questions/25214036/getting-invalid-operation-mymaptitle-type-interface-does-not-support-in

 

你可能感兴趣的:(go将interface{}转换成map方便读取)