INNER CODE UNIT · Go

func

tazjin/nixery · cmd/server/main.go:53

func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	hostname := r.Host
	if hostname == "" {
		hostname = "nixery.dev"
	}

	data := struct {
		Hostname string
		Version  string
		Errors   []*builder.BuildError
	}{
		Hostname: hostname,
		Version:  version,
		Errors:   h.errors.GetAllErrors(),
	}

	err := h.template.Execute(w, data)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…