vivaplusdl/html_debug.go
Sebastiaan de Schaetzen 6fd1850e20
Some checks failed
Build / build (push) Failing after 1h10m17s
Basics of a web interface
2025-03-12 08:43:07 +01:00

21 lines
336 B
Go

// / +build !release
package main
import (
"html/template"
"io"
"net/http"
)
func staticFileServer() http.Handler {
return http.FileServer(http.Dir("./static"))
}
func renderTemplate(wr io.Writer) error {
templates, err := template.ParseGlob("web/*.gohtml")
if err != nil {
return err
}
return templates.Execute(wr, nil)
}