var trailingPort … var osDefaultInheritEnv … type Handler … func (h *Handler) stderr() io.Writer { … } // removeLeadingDuplicates remove leading duplicate in environments. // It's possible to override environment like following. // // cgi.Handler{ // ... // Env: []string{"SCRIPT_FILENAME=foo.php"}, // } func removeLeadingDuplicates(env []string) (ret []string) { … } func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { … } func (h *Handler) printf(format string, v ...any) { … } func (h *Handler) handleInternalRedirect(rw http.ResponseWriter, req *http.Request, path string) { … } func upperCaseAndUnderscore(r rune) rune { … } var testHookStartProcess …