Skip to content

Glossary: Go Beyond the Basics

environment variable

Also written: os.Getenv, env var

A named setting the shell passes to a program, such as `LOG_LEVEL=debug`. A Go program reads it with `os.Getenv`, which returns `""` if it is unset.

Where the book teaches it

Related terms

log level