Garden 🌻

get_env

Get the value of an environment variable.

Returns Some(value) if the environment variable is set, or None if it is not set.

get_env("HOME") //-> Some("/home/user")
get_env("NO_SUCH_VAR") //-> None
Source Codepublic fun get_env(name: String): Option<String> {
  __BUILTIN_IMPLEMENTATION
}