progdoc/models.go

26 lines
307 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
}
type siteMap struct {
2026-02-01 06:04:15 +00:00
Meta *SiteMeta
2026-02-01 04:00:26 +00:00
Pages []sitePage
}
type SourceCtx struct {
2026-02-01 06:04:15 +00:00
Meta *SiteMeta
2026-02-01 04:00:26 +00:00
}