const baseURL … func init() { … } // Proxy returns a handler that can be registered on /compile to proxy requests to the Go playground. // // This package already contains a func init that does: // // func init() { // http.Handle("/compile", Proxy()) // } // // Proxy may be useful for servers that use HTTP muxes other than the default mux. func Proxy() http.Handler { … } func bounce(w http.ResponseWriter, r *http.Request) { … } func passThru(w io.Writer, req *http.Request) error { … } func post(ctx context.Context, url, contentType string, body io.Reader) (*http.Response, error) { … }