code: func WriteToDisk(filename string, kubeconfig *clientcmdapi.Config) error {
  	err := clientcmd.WriteToFile(*kubeconfig, filename)
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // WriteToDisk writes a KubeConfig object down to disk with mode 0600