Help us shape the future of Go! Take the 2026 Go Developer Survey

userpaths

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package userpaths resolves standard application and personal directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locations

type Locations struct {
	Home            string
	DataHome        string
	ConfigHome      string
	StateHome       string
	CacheHome       string
	RuntimeDir      string
	Desktop         string
	Download        string
	Documents       string
	Music           string
	Pictures        string
	Videos          string
	Templates       string
	PublicShare     string
	DataDirs        []string
	ConfigDirs      []string
	FontDirs        []string
	ApplicationDirs []string
}

func Resolve

func Resolve() Locations

Resolve takes a snapshot of the current user's directories without creating them.

Jump to

Keyboard shortcuts

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