xdg

package
v0.0.0-...-791c77c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dotenv

type Dotenv struct {
	*XDG
}

func (Dotenv) ReadFrom

func (d Dotenv) ReadFrom(r io.Reader) (n int64, err error)

func (Dotenv) WriteTo

func (d Dotenv) WriteTo(w io.Writer) (n int64, err error)

type XDG

type XDG struct {
	Home      string
	AddedPath string // name of the utility

	Data    string
	Config  string
	State   string
	Cache   string
	Runtime string
}

func (XDG) GetXDGPaths

func (x XDG) GetXDGPaths() []string

func (*XDG) InitializeFromDotenvFile

func (x *XDG) InitializeFromDotenvFile(
	addedPath string,
	file string,
) (err error)

func (*XDG) InitializeOverridden

func (x *XDG) InitializeOverridden(
	addedPath string,
) (err error)

func (*XDG) InitializeStandardFromEnv

func (x *XDG) InitializeStandardFromEnv(
	addedPath string,
) (err error)

Jump to

Keyboard shortcuts

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