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, 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.

Features

  • The current implementation supports most flavors of Unix, Windows, macOS and Plan 9
  • Documentation available
  • 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 tipically defined
  • XDG user directories
  • This project is licensed under the MIT license

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow xdg

xdg Web Site

Other Useful Business Software
Fully Managed MySQL, PostgreSQL, and SQL Server Icon
Fully Managed MySQL, PostgreSQL, and SQL Server

Automatic backups, patching, replication, and failover. Focus on your app, not your database.

Cloud SQL handles your database ops end to end, so you can focus on your app.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of xdg!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2024-06-03