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 –