package webui import ( "fmt" "html" "os" "strings" ) func layoutHead(title string) string { return ` ` + html.EscapeString(title) + ` ` } func layoutNav(active string, buildLabel string) string { type navItem struct { id, label, href string sep bool } items := []navItem{ {id: "dashboard", label: "Dashboard", href: "/"}, {id: "audit", label: "1. Audit", href: "/audit"}, {id: "check", label: "2. Check", href: "/check"}, {id: "load", label: "3. Load", href: "/load"}, {id: "burn", label: "4. Burn", href: "/burn"}, {id: "benchmark", label: "5. Benchmark", href: "/benchmark"}, {sep: true}, {id: "tasks", label: "Tasks", href: "/tasks"}, {id: "tools", label: "Tools", href: "/tools"}, {id: "settings", label: "Settings", href: "/settings"}, } var b strings.Builder b.WriteString(``) return b.String() }