Join Slack
Powered by
I have a variable of type pulumi.Output. How can I...
# golang
r
ripe-shampoo-80285
09/01/2022, 8:30 PM
I have a variable of type pulumi.Output. How can I cast it to pulumi.StringPtrOutput which is expected input type for a function?
ripe-shampoo-80285
09/01/2022, 8:47 PM
This worked for me: v.ApplyT(func(o interface{}) *string { out := o.(string) return &out }).(pulumi.StringPtrOutput)
77
Views
Open in Slack
Previous
Next