env

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 3 Imported by: 18

Documentation

Overview

Package env contains functions for dealing with environment variables

Index

Constants

View Source
const ShellExpandHelp = "\n\nLeading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`."

ShellExpandHelp describes what ShellExpand does for inclusion into help

Variables

This section is empty.

Functions

func CurrentUser added in v1.54.0

func CurrentUser() (userName string)

CurrentUser finds the current user name or "" if not found

func ShellExpand

func ShellExpand(s string) string

ShellExpand replaces a leading "~" with the home directory" and expands all environment variables afterwards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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