Call the service
The service call now is just:
result, err := client.DescribeInstances(context.TODO(),parms)
- var err is of type error
- with := new variables are defined
- You max not reuse the variable result for calls to other api calls, because it is created as variable with type DescribeInstancesOutput.
Here you see the components in context:
Now we can process the results.
See the full source on github.