[][src]Function bloguen::util::current_username

pub fn current_username() -> Option<String>

Try to get the name of the currently logged-in user.

On Windows, checks GetUserName().

On non-Windows, checks getlogin_r(3), then $USER.