gofer 0.2.0

Gofer.rs makes it easy to fetch data from any URL.
Documentation
1
2
3
4
5
6
7
8
// This is free and unencumbered software released into the public domain.

use crate::{Read, Result, Url};

/// See: https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)
pub fn open<'a, 'b>(_url: &'a Url<'b>) -> Result<Box<dyn Read>> {
    Ok(Box::new(std::io::stdin().lock()))
}