package main import ( "fmt" "os" "strings" ) func main(){ fmt.Print("20 text/gemini\r\n") fmt.Println("# Environment Variables Available for CGI scripts") for _,env_var := range os.Environ() { kv_pair := strings.SplitN(env_var,"=",2) fmt.Println("##",kv_pair[0]) fmt.Println(kv_pair[1]) } }