code: func newVimSession(ctx context.Context, u *url.URL, insecure bool) (*govmomi.Client, error) {
  	logger.Printf("[DEBUG] Creating new SOAP API session on endpoint %s", u.Host)
  	client, err := govmomi.NewClient(ctx, u, insecure)
  	if err != nil {
  		return nil, fmt.Errorf("error setting up new vSphere SOAP client: %s", err)
  	}
  
  	logger.Println("[DEBUG] SOAP API session creation successful")
  	return client, nil
  }
docs: // newVimSession connects the VIM SOAP API client connection.