env

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 3 Imported by: 0

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.55.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