code: func NewClient(ctx context.Context) (*govmomi.Client, error) {
  	flag.Parse()
  
  	// Parse URL from string
  	u, err := soap.ParseURL(*urlFlag)
  	if err != nil {
  		return nil, err
  	}
  
  	// Override username and/or password as required
  	processOverride(u)
  
  	// Connect and log in to ESX or vCenter
  	return govmomi.NewClient(ctx, u, *insecureFlag)
  }
docs: // NewClient creates a govmomi.Client for use in the examples