code: func GetResource(kind string, resources []*api.GenericResource) []*api.GenericResource {
  	var res []*api.GenericResource
  
  	for _, r := range resources {
  		if Kind(r) != kind {
  			continue
  		}
  
  		res = append(res, r)
  	}
  
  	return res
  }
docs: // GetResource returns resources from the "resources" parameter matching the kind key