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

adventurous-planet-77099

11/22/2023, 1:38 PM
this is how i create
nodesOutput
node := pulumi.All(droplet.Ipv4Address, droplet.Ipv4AddressPrivate).ApplyT(func(args []interface{}) (NodeInfo, error) {
return NodeInfo{
Public:    args[0].(string),
Private:   args[1].(string)
}, nil
}).(pulumi.AnyOutput)
nodesOutput = append(nodesOutput, node)