env/core

sourceenv/core.sx

get

pub fn get(name: ref u8) ref u8

Get an environment variable. Returns an empty string when the variable is not set.

get_opt

pub fn get_opt(name: ref u8) option[ref u8]

Get an environment variable, or none when it is not set.

has

pub fn has(name: ref u8) bool

Check whether an environment variable is set.