【发布时间】:2021-01-11 15:14:03
【问题描述】:
我被这个困住了,我想在列表中写 2 个地图。我怎么做?我试过这个,但这不起作用。即使不是 interface{},我放的是字符串,它也不起作用。
var b := []interface{}{
{
"type" : "value1",
"target" : "value2",
},
{
"type" : "value3",
"target" : "value4",
}
}
【问题讨论】:
-
不要使用
interface{}。