The std.env
module provides functions for interacting with environment variables and command-line arguments.
Returns command-line arguments as an array of strings.
Return Type: Array<string>
Example:
Returns all environment variables as an object where keys are variable names and values are their corresponding values.
Return Type: Object<string, string>
Example:
Gets the value of an environment variable.
Parameters:
name
: The name of the environment variable to retrieveReturn Type: string | nil
Example:
Sets the value of an environment variable.
Parameters:
name
: The name of the environment variable to setvalue
: The value to setReturn Type: nil
Example: