dirs

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT-0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s string) string

ExpandEnv works like os.ExpandEnv but uses GetEnv.

func ExpandTilde

func ExpandTilde(s string) string

ExpandTilde expands tilde "~" into the home directory.

func GetEnv

func GetEnv(key string) string

GetEnv is a wrapper of os.Getenv implementing fallback for some environment variables.

func HomeDir

func HomeDir(usr string) string

HomeDir returns the user's home directory.

func RootDir

func RootDir() string

RootDir returns the system root directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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