env

package
v0.0.0-...-b4aeae5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 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

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