{"repo":"adrg/xdg","free":true,"listed":false,"github":"https://github.com/adrg/xdg","clone":"git clone https://github.com/adrg/xdg.git","description":"Go implementation of the XDG Base Directory Specification and XDG user directories","language":"Go","stars":1014,"topics":["xdg","go","golang","specification","library","golang-library","golang-package","xdg-basedir","xdg-user-dirs","cross-platform"],"license":"MIT","category":"dev-tools","readme_excerpt":"Go implementation of the XDG Base Directory Specification and XDG user directories. Provides an implementation of the XDG Base Directory Specification. The specification defines a set of standard paths for storing application files, including data and configuration files. For portability and flexibility reasons, applications should use the XDG defined locations instead of hardcoding paths. The package also includes the locations of well known user directories, support for the non-standard XDG BIN HOME directory, as well as other common directories such as fonts and applications. The current implementation supports most flavors of Unix , Windows , macOS and Plan 9 . On Windows, where XDG environment variables are not usually set, the package uses Known Folders as defaults. Therefore, appropriate locations are used for common folders which may have been redirected. See usage examples below. Full documentation can be found at https://pkg.go.dev/github.com/adrg/xdg. Installation go get github.com/adrg/xdg Default locations The package defines sensible defaults for XDG variables which are empty or not present in the environment. - On Unix-like operating systems, XDG environment variables are typically defined. Appropriate default locations are used for the environment variables which are not set. - On Windows, XDG environment variables are usually not set. If that is the case, the package relies on the appropriate Known Folders. Sensible fallback locations are used for the folders","default_branch":null,"files":null,"tree":[],"storefront":"/r/adrg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adrg/xdg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}