Environment
Struct · built-in type
struct EnvironmentThe running program: ending it, with an exit code or with a panic.
Static methods
Section titled “Static methods”| Name | Description |
|---|---|
Exit |
Ends the program with the exit code code (0: success). |
Panic |
Ends the program because of a bug: writes message and where the panic happened (file, line, column and function; for a function of the standard library also where the program called it) to stderr and exits with code 101. |
static void Exit(int code)Ends the program with the exit code code (0: success).
static void Panic(string message)Ends the program because of a bug: writes message and where the panic happened (file, line, column and
function; for a function of the standard library also where the program called it) to stderr and exits with
code 101.