refined-pilot-45584
06/19/2023, 3:23 PMBackends: &compute.BackendServiceBackendArray{}
Is the Struct I would like to Populate. I could simply say
Backends: &compute.BackendServiceBackendArray{
&compute.BackendServiceBackendArgs{
Group: "/projects/xxxx/global/backendservice/yyyy",
},
},
However this is obviously not dynamic. It I wanted to build
BackendServiceBackendArray{}
in a loop; or If I wanted to Append
&compute.BackendServiceBackendArgs{}
into the Array. Is there a way to do this…
for Example
backend := &compute.BackendServiceBackendArray{}
backends = append(backends, &compute.BackendServiceBackendArgs{Group: "xxxxxx"})
I am looking for the correct way to dynamically build out these InputArray Objects?billowy-army-68599
refined-pilot-45584
06/19/2023, 3:28 PM