~adnano/go-xdg

Package xdg implements the XDG Base Directory Specification.
Update README.md
Support more operating systems
Remove RuntimeDir

clone

read-only
https://git.sr.ht/~adnano/go-xdg
read/write
git@git.sr.ht:~adnano/go-xdg

You can also use your local clone with git send-email.

#go-xdg

GoDoc

Package xdg implements the XDG Base Directory Specification.

#Default locations

Unix Darwin Windows Plan 9
DataHome ~/.local/share ~/Library/Application Support %AppData% $home/lib
ConfigHome ~/.config ~/Library/Application Support %AppData% $home/lib
DataDirs /usr/local/share, /usr/share /Library/Application Support %ProgramData% /lib
ConfigDirs /etc/xdg /Library/Application Support %ProgramData% /lib
CacheHome ~/.cache ~/Library/Caches %LocalAppData% $home/lib/cache