1
0
forked from rosa/hakurei

cmd/mbf: jstest: add basic CLI reporter

This commit is contained in:
kat
2026-03-29 01:34:50 +11:00
parent cb4b2706c0
commit d749d46bd1
7 changed files with 147 additions and 18 deletions

View File

@@ -1,7 +1,19 @@
// Package ui holds the static web UI.
package ui
import "net/http"
import (
"io/fs"
"net/http"
)
// staticFS is an internal helper to wrap around go:embed's filesystem.
func staticFS(static fs.FS) fs.FS {
if f, err := fs.Sub(static, "static"); err != nil {
panic(err)
} else {
return f
}
}
// Register arranges for mux to serve the embedded frontend.
func Register(mux *http.ServeMux) {