这是我的代码:
package main
import (
"fmt"
)
type person struct {
//name [][]string{};
name [][]string
}
func main() {
var people = map[string]*person{}
people["first person"] = &person{name:{{"My name","30"}}}
fmt.Println(people["first person"])
}
我有一个错误:
复合文字中缺少类型
我想要输出为[[My name,30]]
有人可以帮助我吗?