os package
Canonical docs for environment variables, files, process state, and core operating-system interactions.
Canonical docs for environment variables, files, process state, and core operating-system interactions.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/os
What it covers
- environment variable access
- process-level operating system APIs
- basic file and process interactions
Why authoritative
Official package documentation for Go’s core operating-system interface.
Use when
- how should Go read environment variables
- when should I use LookupEnv or Getenv
- what does the os package provide here
Keywords
- os, environment variables, Getenv, LookupEnv, process, filesystem