01 use std::env;
02
03 // Base url of agena proxy
04 const BASE: &'static str = "gemini://example.com/";
05
06 fn main() {
07 let query = match env::var("QUERY_STRING") {
08 Ok(q) => q,
09 _ => {
10 println!("10\tGopher url:\r\n");
11 return;
12 }
13 };
14 println!("30\t{}{}\r\n", BASE, query);
15 }