progdoc/models.go

32 lines
394 B
Go
Raw Normal View History

2026-02-01 04:00:26 +00:00
package progdoc
import "io"
type pageSource interface {
HTML(w io.Writer, srcCtx *SourceCtx) error
}
2026-02-01 06:04:15 +00:00
type SiteMeta struct {
2026-02-01 04:00:26 +00:00
Title string
}
type sitePage struct {
2026-02-01 06:04:15 +00:00
Path string
2026-02-01 04:00:26 +00:00
Source pageSource
}
2026-02-02 10:25:43 +00:00
type siteStatic struct {
Path string
Source staticSource
}
2026-02-01 04:00:26 +00:00
type siteMap struct {
2026-02-02 10:25:43 +00:00
Meta *SiteMeta
Pages []sitePage
Static []siteStatic
2026-02-01 04:00:26 +00:00
}
type SourceCtx struct {
2026-02-01 06:04:15 +00:00
Meta *SiteMeta
2026-02-01 04:00:26 +00:00
}