sparse-intern-71089
08/20/2020, 7:14 AMchilly-rainbow-79265
08/20/2020, 12:08 PMchilly-rainbow-79265
08/20/2020, 12:19 PMchilly-rainbow-79265
08/20/2020, 12:19 PMimportant-appointment-55126
08/20/2020, 1:57 PMinstance_spec
which is an array, into a struct which embeds an array - ie. all you actually need for Data
is that inner one; you don’t need the wrapperimportant-appointment-55126
08/20/2020, 1:58 PMtype Data struct {
Name string `json:"name"`
Type string `json:"type"`
Count int `json:"count"`
DataDiskSize int `json:"data_disk_size"`
UserName string `json:"user_name"`
ResourceGroupName string `json:"resource_group"`
}
important-appointment-55126
08/20/2020, 1:58 PMvar d []Data
and pass that to your call to GetObject
important-appointment-55126
08/20/2020, 2:04 PMd.Data
to `GetObject`; should be the same resultchilly-rainbow-79265
08/20/2020, 2:24 PMchilly-rainbow-79265
08/20/2020, 2:30 PM