Skip to content

Glossary: Go in Practice

Environment variable

Also written: environment variables, os.Getenv

A named setting passed to a program from outside, such as `ADDR`, `DB_PATH` or `RATES_URL`. It lets the same program run in different places without code changes.

Where the book teaches it

Related terms

cmp.OrENV