Skip to content
/ xdg Public

A simple implementation of the XDG Base Directory Specification

License

Notifications You must be signed in to change notification settings

miquella/xdg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdg

An implementation of the XDG Base Directory Specification.

For more information, see: XDG Base Directory Specification.

Why

Built as a simple and correct XDG implementation that maintains convenience, but doesn't unnecessarily hide complexity. To simplify searching, DATA and CONFIG are provided as combined *_HOME and *_DIRS accessors.

Usage

import (
    "github.com/miquella/xdg"
)

var (
    XDG = xdg.WithSuffix("example")
)

// FindExampleConfigs returns order-preference example.config files
func FindExampleConfigs() ([]string, error) {
    return XDG.CONFIG.Find("example.config")
}

About

A simple implementation of the XDG Base Directory Specification

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages