💾 Archived View for 80h.dev › projects › gemserv › files › cgi-scripts › agena-cgi › src › main.rs.g… captured on 2022-03-01 at 15:23:49. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

🚧 View Differences

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

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 }