32 lines
394 B
Go
32 lines
394 B
Go
package progdoc
|
|
|
|
import "io"
|
|
|
|
type pageSource interface {
|
|
HTML(w io.Writer, srcCtx *SourceCtx) error
|
|
}
|
|
|
|
type SiteMeta struct {
|
|
Title string
|
|
}
|
|
|
|
type sitePage struct {
|
|
Path string
|
|
Source pageSource
|
|
}
|
|
|
|
type siteStatic struct {
|
|
Path string
|
|
Source staticSource
|
|
}
|
|
|
|
type siteMap struct {
|
|
Meta *SiteMeta
|
|
Pages []sitePage
|
|
Static []siteStatic
|
|
}
|
|
|
|
type SourceCtx struct {
|
|
Meta *SiteMeta
|
|
}
|