env

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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