💾 Archived View for tilde.team › ~eikonal › cgidemo › test2x › test20.go captured on 2024-05-26 at 15:26:32.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

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

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])
	}
}