userdirs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: BSD-3-Clause Imports: 6 Imported by: 4

Documentation

Overview

Package userdirs provides easy access to "well known" user directories. For more information, see: https://www.freedesktop.org/wiki/Software/xdg-user-dirs/

Index

Constants

This section is empty.

Variables

View Source
var (
	Desktop     string
	Documents   string
	Download    string
	Music       string
	Pictures    string
	PublicShare string
	Templates   string
	Videos      string
)

The default set of userdirs. Most people will only need to use this.

Functions

This section is empty.

Types

type UserDirs

type UserDirs struct {
	Desktop     string
	Documents   string
	Download    string
	Music       string
	Pictures    string
	PublicShare string
	Templates   string
	Videos      string
}

UserDirs is a set of user directories that are common in graphical environments.

func New

func New(r io.Reader) (*UserDirs, error)

New creates a new UserDirs struct by reading from the given io.Reader.

Jump to

Keyboard shortcuts

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