code: func GroupVersionResources(rls []*metav1.APIResourceList) (map[schema.GroupVersionResource]struct{}, error) {
  	gvrs := map[schema.GroupVersionResource]struct{}{}
  	for _, rl := range rls {
  		gv, err := schema.ParseGroupVersion(rl.GroupVersion)
  		if err != nil {
  			return nil, err
  		}
  		for i := range rl.APIResources {
  			gvrs[schema.GroupVersionResource{Group: gv.Group, Version: gv.Version, Resource: rl.APIResources[i].Name}] = struct{}{}
  		}
  	}
  	return gvrs, nil
  }
docs: // GroupVersionResources converts APIResourceLists to the GroupVersionResources.