feat(18-01): chi v5 dependency, go:embed static assets, HTML layout and overview templates

- Add chi v5.2.5 to go.mod
- Vendor htmx v2.0.4 minified JS in pkg/web/static/
- Create go:embed directives for static/ and templates/
- Create layout.html with nav bar and Tailwind CDN
- Create overview.html with stat cards and findings table
This commit is contained in:
salvacybersec
2026-04-06 18:01:37 +03:00
parent 17c17944aa
commit dd2c8c5586
7 changed files with 177 additions and 4 deletions

14
pkg/web/embed.go Normal file
View File

@@ -0,0 +1,14 @@
package web
import "embed"
// staticFiles holds the vendored static assets (htmx.min.js, style.css, etc.)
// embedded at compile time.
//
//go:embed static/*
var staticFiles embed.FS
// templateFiles holds HTML templates embedded at compile time.
//
//go:embed templates/*
var templateFiles embed.FS