# Система

Здесь описаны общие системные функции.

* [GetEnv( str name ) str](/stdlib/system.md#getenv-str-name-str)
* [SetEnv( str name, bool|int|str val )](/stdlib/system.md#setenv-bool-or-int-or-str-name)
* [UnsetEnv( str name )](/stdlib/system.md#unsetenv-str-name)

## Функции

### GetEnv(str name) str

Функция *GetEnv* возвращает значение переменной окружения.

```go
Print( GetEnv("PATH"))
// the same as
Print( $PATH )
```

### SetEnv(bool|int|str name)

Функция *SetEnv* присваивает переменной окружения указанное значение.

```go
SetEnv("MYVARB", true)
SetEnv("MYVARI", 101)
SetEnv("MYVAR", "Test value")
// the same as
$MYVARB = true
$MYVARI = 101
$MYVARI = "Test value"
```

### UnsetEnv(str name)

Функция *UnsetEnv* удаляет переменную окружения.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ru.gentee.org/stdlib/system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
