code: func FindReference(refs []types.ManagedObjectReference, match ...types.ManagedObjectReference) *types.ManagedObjectReference {
  	for _, ref := range refs {
  		for _, m := range match {
  			if ref == m {
  				return &ref
  			}
  		}
  	}
  
  	return nil
  }
docs: // FindReference returns the 1st match found in refs, or nil if not found.