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
}
type siteMeta struct {
Title string
}
type sitePage struct {
Target string
Source pageSource
}
type siteMap struct {
Meta *siteMeta
Pages []sitePage
}
type SourceCtx struct {
Meta *siteMeta
}