This message was deleted.
# golang
s
This message was deleted.
g
In my experience with the Pulumi Go SDK I have yet to need to instance a
...Input
object, so I think you need a different type there.
I think this is what you want there:
Copy code
Clone: &vsphere.VirtualMachineCloneArgs{
		TemplateUuid: pulumi.String("173f6e1d-e6a5-4d4d-9fe0-555c41c9faa0"),
	}
g
That works πŸ™Œ Thanks @gentle-diamond-70147, to be fair I’m a little confused how that works because the struct says Clone is a
Clone VirtualMachineClonePtrInput
πŸ€” perhaps one or two lines of documentation would help developers realize there are a few options πŸ˜‰
g
FWIW, I'm not experienced enough with Go to understand how it works. Those were added to help exactly this. Is there another spot you would expect to see hints like this?
g
Hmm πŸ€” that works, though it seems the auto completion of structs in VS Code seems to not show that hint 😞 so it’s definitely a β€œLeon” problem πŸ˜‰
g
Definitely not "just a Leon" problem. πŸ™‚