https://pulumi.com logo
#golang
Title
# golang
s

salmon-account-74572

07/17/2020, 2:17 PM
Does anyone have an example of using a StackReference in Go?
i

important-appointment-55126

07/17/2020, 3:02 PM
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

lemon-agent-27707

07/17/2020, 3:16 PM
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

salmon-account-74572

07/17/2020, 4:37 PM
Thanks--I have the StackReference working (I think), but having some issues with types. I'll start a separate thread for that.
3 Views