Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
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
#golang
Join Slack