code: func ipAddrsForVirtualMachines(ctx context.Context, client *vSphereClient, vms []*object.VirtualMachine) ([]string, error) {
  	var addrs []string
  	for _, vm := range vms {
  		as, err := buildAndSelectGuestIPs(ctx, vm)
  		if err != nil {
  			return nil, err
  		}
  		addrs = append(addrs, as...)
  	}
  	return addrs, nil
  }
docs: // ipAddrsForVirtualMachines takes a set of virtual machines and returns a
  // consolidated list of IP addresses for all of the VMs.