func (app *application) sandbox(w http.ResponseWriter, r *http.Request) {
	var sandbox Sandbox
	if r.Method == http.MethodPost {
		err := r.ParseForm()
		if err != nil {
			app.clientError(w, http.StatusBadRequest)
			return
		}
		if r.PostForm.Get("load") != "none" {
			check := app.checkList[r.PostForm.Get("load")]
			r.PostForm.Set("sandbox", app.loadSandbox(*check))
		}
		sandbox = *app.runSandbox(r.PostForm.Get("sandbox"))
	}
	app.render(w, r, "sandbox.page.tmpl", &templateData{
		Checklist:     app.checkList,
		Sandbox:       sandbox,
		Configuration: app.config,
	})
}
Render sandbox form for debugging
package main
import (
	"net/http"
	log "github.com/sirupsen/logrus"
)
func (app *application) home(w http.ResponseWriter, r *http.Request) {
	if r.URL.Path != "/" {
		app.notFound(w)
		return
	}
	app.render(w, r, "checks.page.tmpl", &templateData{
		Checklist:     app.checkList,
		Configuration: app.config,
	})
}