An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/kirsle/configdir

Package configdir provides a cross platform means of detecting the system's configuration directories. This makes it easy to program your Go app to store its configuration files in a standard location relevant to the host operating system. For Linux and some other Unixes (like BSD) this means following the Freedesktop.org XDG Base Directory Specification 0.8, and for Windows and macOS it uses their standard directories. This is a simple no-nonsense module that just gives you the paths, with optional components tacked on the end for vendor- or app-specific namespacing. It also provides a convenience function to call `os.MkdirAll()` on the paths to ensure they exist and are ready for you to read and write files in. Standard Global Configuration Paths Standard User-Specific Configuration Paths Standard User-Specific Cache Paths Quick start example for a common use case of this module.
1 version
Latest release: over 8 years ago
132 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/kirsle/configdir

Dependent Repos 0