Out of interest, why did you switch to golang? Personally using TS, but also have golang coding exp.
s
silly-stone-79070
05/27/2020, 8:31 AM
We recently did a project in golang it really enjoyed it so thought we would use it for this new project.
I have actually just found that after the Apply func you can do:
Copy code
rancherInstanceInternalIP := rancherInstance.NetworkInterfaces.ApplyT(func(iface []compute.InstanceNetworkInterface) *string {
return iface[0].NetworkIp
}).(pulumi.StringPtrInput)
// The change I have made here is adding .(pulumi.StringPtrInput) to make it a usable input
i
important-appointment-55126
05/27/2020, 3:03 PM
@silly-stone-79070 can’t you just use the value directly at the point you need the input? Pulumi should figure out the details on resolving it itself
s
silly-stone-79070
05/27/2020, 3:56 PM
I ended up going with typescript as I found the whole experience of pulumi in go more effort
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.