code: func kubeconfigFromEnv() string {
  	kubeconfig := os.Getenv(teleport.EnvKubeConfig)
  
  	// The KUBECONFIG environment variable is a list. On Windows it's
  	// semicolon-delimited. On Linux and macOS it's colon-delimited.
  	var parts []string
  	switch runtime.GOOS {
  	case teleport.WindowsOS:
  		parts = strings.Split(kubeconfig, ";")
  	default:
  		parts = strings.Split(kubeconfig, ":")
  	}
  
  	// Default behavior of kubectl is to return the first file from list.
  	var configpath string
  	if len(parts) > 0 {
  		configpath = parts[0]
  	}
  	log.Debugf("Found kubeconfig in environment at '%v'.", configpath)
  
  	return configpath
  }
docs: // kubeconfigFromEnv extracts location of kubeconfig from the environment.