// Package web embeds the web UI: a small single-page application that // uses Steward's REST API for everything it does. package web import ( "embed" "io/fs" "mime" ) func init() { // Not in Go's built-in table, and the server sends nosniff. mime.AddExtensionType(".woff2", "font/woff2") } //go:embed static var static embed.FS // FS returns the web UI files (index.html and assets/). func FS() fs.FS { sub, err := fs.Sub(static, "static") if err != nil { panic(err) } return sub }