[−][src]Function loadenv::load_buf
pub fn load_buf<R: BufRead>(reader: R) -> Result<(), String>
Load a .env
from a BufReader
.
Panics
If the .env
file contained in reader
cannot be read, load_buf()
will panic.
Examples
use loadenv; let dotenv = "FOO=bar\nBOP==baz"; loadenv::load_buf(dotenv.as_bytes()).ok();