type NamePrinter … // PrintObj is an implementation of ResourcePrinter.PrintObj which decodes the object // and print "resource/name" pair. If the object is a List, print all items in it. func (p *NamePrinter) PrintObj(obj runtime.Object, w io.Writer) error { … } func GetObjectGroupKind(obj runtime.Object) schema.GroupKind { … } func printObj(w io.Writer, name string, operation string, shortOutput bool, groupKind schema.GroupKind) error { … }