code: func (cmd *find) rootMatch(ctx context.Context, root object.Reference, client *vim25.Client, filter property.Filter) bool {
  	ref := root.Reference()
  
  	if !cmd.kind.wanted(ref.Type) {
  		return false
  	}
  
  	if len(filter) == 1 && filter["name"] == "*" {
  		return true
  	}
  
  	var content []types.ObjectContent
  
  	pc := property.DefaultCollector(client)
  	_ = pc.RetrieveWithFilter(ctx, []types.ManagedObjectReference{ref}, filter.Keys(), &content, filter)
  
  	return content != nil
  }
docs: // rootMatch returns true if the root object path should be printed