Hmm, mine also resolves a leading tilde in these variables. And if $HOME is not specified it tries to resolve the userâs home directory by user.Current().HomeDir. Maybe thatâs overkill, I have to check the XDG spec.
But Iâm definitely missing os.UserDataDir(). Thatâs a bummer.