is there a reason why using `append` is not workin...
# golang
l
is there a reason why using
append
is not working but using the index to add items to a
[]pulumi.StringOutput
ex:
Copy code
workerPrivateIps := make([]pulumi.StringOutput, workerCount)
privateIP := worker.Networks.ApplyT(func(networks []hcloud.ServerNetworkType) string {
	return *networks[0].Ip
}).(pulumi.StringOutput)
workerPrivateIps[i] = privateIP  ==> WORKS

workerPrivateIps = append(workerPrivateIps, privateIP) ==> Null Pointer error