duck-template 0.1.9

A cli tool for generating files from a template just with a json file
1
2
3
4
5
6
7
use reqwest::{Error, blocking::get};

pub fn curl_if_valid_url(input: &str) -> Result<String, Error> {
  let response = get(input)?;
  let body = response.text()?;
  Ok(body)
}