This message was deleted.
# golang
s
This message was deleted.
c
@here any ideas on this. Because else change the vm type is pretty bad. If there is any alternate approach, please lemme know.
this vanila go program is working for me
I think internally some key is changing in pulumi. I'm not able to debug also
i
i think the problem is you’re fetching
instance_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 wrapper
Copy code
type 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"`
}
then just declare
var d []Data
and pass that to your call to
GetObject
🙌 1
or, if you wanted to keep your existing struct you could just pass
d.Data
to `GetObject`; should be the same result
c
Thanks. That makes sense. quite a bit of subtleness.
is there any place I can raise a PR for custom keyspace code doc ? current one is not quite beginner friendly