Documentation
¶
Overview ¶
Package env provides auto-tagged environment access: on !wasm it reads the process environment (os.Getenv + .env fallback), on wasm it reads Cloudflare's context.env via syscall/js. No injection, no Reader — the build tag selects the implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Arg ¶ added in v0.0.2
Arg returns the value for -key=value or -key value in os.Args (skipping argv[0]). Only available on !wasm; wasm has no argv.
func Lookup ¶ added in v0.0.8
Lookup returns the value of key from the process environment, falling back to a .env file in the working directory. The bool indicates if the key was found.
func LookupAt ¶ added in v0.0.8
LookupAt is Lookup with an explicit .env path, for callers not running from the project root.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.