func mustPrintWithKinds(objs []runtime.Object, infos []*resource.Info, sorter *kubectl.RuntimeSort) bool {
	var lastMap *meta.RESTMapping

	for ix := range objs {
		var mapping *meta.RESTMapping
		if sorter != nil {
			mapping = infos[sorter.OriginalPosition(ix)].Mapping
		} else {
			mapping = infos[ix].Mapping
		}

		// display "kind" only if we have mixed resources
		if lastMap != nil && mapping.Resource != lastMap.Resource {
			return true
		}
		lastMap = mapping
	}

	return false
}
// mustPrintWithKinds determines if printer is dealing
// with multiple resource kinds, in which case it will
// return true, indicating resource kind will be
// included as part of printer output
mustPrintWithKinds determines if printer is dealing
with multiple resource kinds, in which case it will
return true, indicating resource kind will be
included as part of printer output
// mustPrintWithKinds determines if printer is dealing // with multiple resource kinds in which case it will // return true indicating resource kind will be // included as part of printer output
func mustPrintWithKinds(objs []runtime.Object, infos []*resource.Info, sorter *kubectl.RuntimeSort) bool {
	var lastMap *meta.RESTMapping
	for ix := range objs {
		var mapping *meta.RESTMapping
		if sorter != nil {
			mapping = infos[sorter.OriginalPosition(ix)].Mapping
		} else {
			mapping = infos[ix].Mapping
		}
		if lastMap != nil && mapping.Resource != lastMap.Resource {
			return true
		}
		lastMap = mapping
	}
	return false
}
func mustPrintWithKinds ( objs [ ] runtime . Object , infos [ ] * resource . Info , sorter * kubectl . RuntimeSort ) bool { var lastMap * meta . RESTMapping for ix := range objs { var mapping * meta . RESTMapping if sorter != nil { mapping = infos [ sorter . OriginalPosition ( ix ) ] . Mapping } else { mapping = infos [ ix ] . Mapping } if lastMap != nil && mapping . Resource != lastMap . Resource { return true } lastMap = mapping } return false }
mustPrintWithKinds determines if printer is dealing
with multiple resource kinds, in which case it will
return true, indicating resource kind will be
included as part of printer output
mustPrintWithKinds determines if printer is dealing with multiple resource kinds in which case it will return true indicating resource kind will be included as part of printer output
// display "kind" only if we have mixed resources