code: func GetConfigHome() (string, error) {
  	if xdgConfigHome := os.Getenv("XDG_CONFIG_HOME"); xdgConfigHome != "" {
  		return xdgConfigHome, nil
  	}
  	home := os.Getenv("HOME")
  	if home == "" {
  		return "", errors.New("could not get either XDG_CONFIG_HOME or HOME")
  	}
  	return filepath.Join(home, ".config"), nil
  }
docs: // GetConfigHome returns XDG_CONFIG_HOME.
  // GetConfigHome returns $HOME/.config and nil error if XDG_CONFIG_HOME is not set.
  //
  // See also https://standards.freedesktop.org/basedir-spec/latest/ar01s03.html