💾 Archived View for 80h.dev › projects › gemserv › files › cgi-scripts › agena-cgi › src › main.rs.g… captured on 2020-09-24 at 00:47:43. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2022-03-01)

-=-=-=-=-=-=-

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 }