Top 0.4% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 8.4% forks on proxy.golang.org
Top 0.7% docker downloads on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/kirsle/configdir
Keywords:
configdir
, go
, golang
, xdg
, xdg-basedir
License: MIT
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/kirsle
Dependent packages: 132
Dependent repositories: 92
Stars: 58 on GitHub
Forks: 5 on GitHub
Docker dependents: 16
Docker downloads: 165,632
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago