code: func ConsumeNodeResources(nodeAvailableResources *[]*api.GenericResource, res []*api.GenericResource) {
  	if nodeAvailableResources == nil {
  		return
  	}
  
  	w := 0
  
  loop:
  	for _, na := range *nodeAvailableResources {
  		for _, r := range res {
  			if Kind(na) != Kind(r) {
  				continue
  			}
  
  			if remove(na, r) {
  				continue loop
  			}
  			// If this wasn't the right element then
  			// we need to continue
  		}
  
  		(*nodeAvailableResources)[w] = na
  		w++
  	}
  
  	*nodeAvailableResources = (*nodeAvailableResources)[:w]
  }
docs: // ConsumeNodeResources removes "res" from nodeAvailableResources