type important struct {
client string `json:"client"`
Response Summary `json:"response"`
type Summary struct {
Name string `json:"name"`
Metadata Clientdata `json:"metadata"`
}
type Clientdata struct {
Income string `json:"income"`
}
v := &important{ client: "xyz", Response: Summary[{
Name: "test",
Metadata: Clientdata { "404040"},
}
}]
//错误:无法使用摘要{名称: “测试”,元数据:Clientdata { “404040”},}(类型总结)如式[]总结更多...
我在做什么错在这里?
自己动手https://github.com/golang/go/wiki/CodeReviewComments#gofmt –