gofer 0.2.0

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

use std::{boxed::Box, env::args, error::Error, io::stdout, result::Result};

pub fn main() -> Result<(), Box<dyn Error>> {
    let mut output = stdout().lock();
    for url in args().skip(1) {
        let mut input = gofer::open(url)?;
        std::io::copy(&mut input, &mut output)?;
    }
    Ok(())
}