Files
baby-nas/internal/web/version.go
T
darroyo ac07499e8d feat: bake version into binary and display in UI sidebar
- Inject VERSION via ldflags (-X main=web.Version=) and git short SHA
- Add /api/version endpoint returning {version, commit}
- Display version in Layout sidebar footer (v0.1.6 · 8cfd405)
- Add AGENTS.md section documenting SemVer policy and bump-before-push rule
- Bump VERSION 0.1.5 -> 0.1.6 in Makefile
2026-07-05 23:07:20 -04:00

12 lines
115 B
Go

package web
var (
Version = "dev"
Commit = ""
)
func SetVersionInfo(v, c string) {
Version = v
Commit = c
}