fn setenv
Sets an environment variable of this process. Static configuration is not affected: it was loaded at startup (§14.1).
Example:
fn main() io {
setenv("OXL_DOC_EXAMPLE", "yes")
print("{env("OXL_DOC_EXAMPLE") ?? "unset"}")
}Вывод
yes
@intrinsic("setenv") pub(api) fn setenv(name: str, value: str) ioС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
name | str |
value | str |
Эффекты
io
Определено в: std/core/functions.oxl:60