645 B
645 B
| summary | read_when | ||
|---|---|---|---|
| googleauth templates via `//go:embed` |
|
googleauth templates (embed)
Problem: huge templates*.go files, noisy diffs, hard to edit.
Current setup
- HTML lives in
internal/googleauth/templates/*.html - Go glue in
internal/googleauth/templates_embed.go(//go:embed) - Variable names preserved:
accountsTemplatesuccessTemplateNewsuccessTemplateerrorTemplatecancelledTemplate
Editing flow
- Edit the HTML files directly.
- Run
go test ./...to confirm templates parse + execute (tests cover this).