[]map[string]string类型转换为[]map[string]interface{}

HaoC7 · · 8048 次点击
![string.jpg](http://studygolang.qiniudn.com/160414/991e63046d62e98661bc4d9a9bcc73dd.jpg)
#4
更多评论
```go var src []map[string]string var dest []map[string]interface{} for i := range src { m := src[i] n := make(map[string]interface{}) for k,v := range m { n[k] = interface{}(v) } dest = append(dest, n) } ```
#1
![string.jpg](http://studygolang.qiniudn.com/160414/80c2f2883ef8adbb4a6a82351bb1ed32.jpg)
#2