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: "speed", label: "4. Speed", href: "/speed"}, {id: "endurance", label: "5. Endurance", href: "/endurance"}, {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() }