多维map中key的问题

jayxtt999 · · 778 次点击
类似php可以这样玩 ``` $where = []; $where[] = ["key"=>"value"]; $where[] = ["key"=>"value"]; $where[] = ["key"=>"value"]; $where[] = ["key"=>"value"]; ```
#1
更多评论
``` interface{}[]{ map[string]interface{}{"key":"value"}, map[string]interface{}{"key2":"value2"}, } ``` 但我绝对不会去这么写。
#2