https://pulumi.com logo
#golang
Title
# 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?
This worked for me: v.ApplyT(func(o interface{}) *string { out := o.(string) return &out }).(pulumi.StringPtrOutput)
67 Views