Skip to main content

getenv

Function getenv 

Source
pub fn getenv(find: &'static str) -> Option<String>
Expand description

this will check the environ array and search for an specific keyword

ยงExample

if let Some(user) = getenv("USER") {
    log::debug!("your user: {:?}", user);
};