func DataHome() (string, error) {
	if xdgHome := os.Getenv("XDG_DATA_HOME"); xdgHome != "" {
		return xdgHome, nil
	}

	homedir, err := os.UserHomeDir()
	if err != nil {
		return "", err
	}

	return filepath.Join(homedir, ".local", "share", folderName), nil
}
// DataHome returns the XDG data home. It may or may not already exist.
DataHome returns the XDG data home. It may or may not already exist.
// DataHome returns the XDG data home . It may or may not already exist .
func DataHome() (string, error) {
	if xdgHome := os.Getenv("XDG_DATA_HOME"); xdgHome != "" {
		return xdgHome, nil
	}
	homedir, err := os.UserHomeDir()
	if err != nil {
		return "", err
	}
	return filepath.Join(homedir, ".local", "share", folderName), nil
}
func DataHome ( ) ( string , error ) { if xdgHome := os . Getenv ( " " ) ; xdgHome != " " { return xdgHome , nil } homedir , err := os . UserHomeDir ( ) if err != nil { return " " , err } return filepath . Join ( homedir , " " , " " , folderName ) , nil }
DataHome returns the XDG data home.
DataHome returns the XDG data home .