Go implementation of the XDG Base Directory Specification and XDG user directories
%APPDATA%\Microsoft\Windows\Templates
instead of the legacy %USERPROFILE%\Templates
path.See https://github.com/adrg/xdg#default-locations for more details.
$XDG_STATE_HOME
being added to the latest XDG Base Directory Specification.os.Stat
bugs on Windows, described by issues https://github.com/golang/go/issues/33357, https://github.com/microsoft/Windows-Containers/issues/97 and https://github.com/golang/go/issues/34900. On some Windows versions, os.Stat
returns an error for valid socket files and for symbolic links to directories.js/wasm
architectureXDG_CONFIG_HOME
environment variable on macOS systems has been
changed from ~/Library/Preferences
to ~/Library/Application Support
.XDG_CONFIG_DIRS
environment variable on macOS systems has been
changed from [/Library/Preferences]
to [~/Library/Preferences, /Library/Application Support, /Library/Preferences]
.See more details regarding the change in PR https://github.com/adrg/xdg/pull/13.
NOTE: the package will still find config files placed relative to the ~/Library/Preferences
directory.
However, if XDG_CONFIG_HOME
is not set, it will suggest saving config files relative to the ~/Library/Application Support
directory.