Go cheatsheet - Env
Env
Functions to operate environment variables:
os.Getenv: get env variable by name, if not set, return empty string
os.LookupEnv: return (value, exists)
os.Setenv: set env variable value
os.Unsetenv: Unset env variable
Sample code:
package main
i...
hn.0xbf.me1 min read