Does anyone have an example of using a StackRefere...
# golang
s
Does anyone have an example of using a StackReference in Go?
i
haven’t had to use them as yet, but the docs do have a Go example https://www.pulumi.com/docs/intro/concepts/programming-model/#stack-references
l
For an example of what you might need to do to transform a resulting value to a particular output type: https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/stack_reference.go#L25-L33
👍 1
s
Thanks--I have the StackReference working (I think), but having some issues with types. I'll start a separate thread for that.