userdirs

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package userdirs implements a structure and methods to handle user-specific directories. https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html https://wiki.archlinux.org/title/XDG_Base_Directory

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDirs

type UserDirs struct {
	// ConfigHome (XDG_CONFIG_HOME) defines the base directory relative to which user-specific configuration files should be stored.
	ConfigHome string
	// CacheHome (XDG_CACHE_HOME) defines the base directory relative to which user-specific non-essential data files should be stored.
	CacheHome string
}

UserDirs structure contains the different user-specific paths.

func NewUserDirs

func NewUserDirs(programName string) (*UserDirs, error)

NewUserDirs create a new userDirs object with correct paths.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL