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