setenv
Set a value of an environment variable. The function adds new environment variable or modifies the value of the existing environment variable. New values will be valid only in the current process.
func uint setenv (
str varname,
str varvalue
)
str varname,
str varvalue
)
Parameters
varname | Environment variable name. |
varvalue | A new value of the environment variable. |
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |