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
// This is free and unencumbered software released into the public domain.

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

pub fn main() -> Result<(), Box<dyn Error>> {
    let mut output = stdout().lock();
    let mut input = gofer::open("git://github.com/dryrust/gofer.rs/master/VERSION")?;
    std::io::copy(&mut input, &mut output)?;

    Ok(())
}