
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
This is go-xdg, a little library to help you use the XDG
base directory spec.
(There are other XDG specs, that might get included in time. Patches welcome.)
Let's say you are writing an app called “frobz”. It has a config file and a sqlite database. You'd do something like this:
configFileName, err := xdg.Config.Find("frobz/config.txt")
if err == nil {
// a config file exists! load it...
}
dbFileName, err := xdg.Data.Ensure("frobz/frobz.db")
// now the file and all its directories exist; it's up to you to
// determine if it's empty, etc.
Both Find and Ensure take a resource to construct the path they return.
A resource is usually an application name (or a well-known shared resource
pool name, such as icons), followed by a filename. However nothing in the
standard nor in this library limits you to that; you may store e.g. your
application's configuration in just $XDG_CONFIG_HOME/application.conf (in
which case the "resource" here would be just application.conf), or in a
sub-directory of an application-specific directory.
BSD simplified, © John R. Lenton, blah blah.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.