code: func historyViewer(restClientGetter genericclioptions.RESTClientGetter, mapping *meta.RESTMapping) (kubectl.HistoryViewer, error) {
  	clientConfig, err := restClientGetter.ToRESTConfig()
  	if err != nil {
  		return nil, err
  	}
  
  	external, err := kubernetes.NewForConfig(clientConfig)
  	if err != nil {
  		return nil, err
  	}
  	return kubectl.HistoryViewerFor(mapping.GroupVersionKind.GroupKind(), external)
  }
docs: // historyViewer Returns a HistoryViewer for viewing change history